LangTag.Grandfathered¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class LangTag.Grandfathered¶
All the fields in the
LangTag.Grandfathered
structure are private to theLangTag.Grandfathered
implementation.- compare(v2)¶
- Parameters:
v2 (
LangTag.Grandfathered
) – aLangTag.Grandfathered
.- Returns:
- Return type:
Compare if self and v2 is the same object or not.
- dump()¶
Dumps the container information to the standard output.
- get_better_tag()¶
- Returns:
a tag string.
- Return type:
Obtains the better tag for use. this is a convenient function to get the preferred-value if available.
- get_preferred_tag()¶
-
Obtains the preferred-value. this is available only when the tag is marked as deprecated.
- ref()¶
- Returns:
the same self object.
- Return type:
Increases the reference count of self.
- unref()¶
Decreases the reference count of self. when its reference count drops to 0, the object is finalized (i.e. its memory is freed).