class cf.Flags(**kwargs)[source]

Self-describing CF flag values.

Stores the flag_values, flag_meanings and flag_masks CF attributes in an internally consistent manner.

Initialisation

Parameters:
flag_valuesoptional

The flag_values CF property. Sets the flag_values attribute.

flag_meaningsoptional

The flag_meanings CF property. Sets the flag_meanings attribute.

flag_masksoptional

The flag_masks CF property. Sets the flag_masks attribute.

Inspection

Attributes

Miscellaneous

Methods

copy

Return a deep copy.

dump

Return a string containing a full description of the instance.

equals

True if two groups of flags are logically equal, False otherwise.

sort

Sort the flags in place.