LangTag.GrandfatheredDb

Fields

None

Methods

class

new ()

lookup (tag)

ref ()

unref ()

Details

class LangTag.GrandfatheredDb

All the fields in the LangTag.GrandfatheredDb structure are private to the LangTag.GrandfatheredDb implementation.

classmethod new()
Returns:

a new instance of LangTag.GrandfatheredDb.

Return type:

LangTag.GrandfatheredDb

Create a new instance of a LangTag.GrandfatheredDb.

lookup(tag)
Parameters:

tag (str) – a tag name to lookup.

Returns:

a LangTag.Grandfathered that meets with tag. otherwise None.

Return type:

LangTag.Grandfathered

Lookup LtGrandfathered if tag is valid and registered into the database.

ref()
Returns:

the same self object.

Return type:

LangTag.GrandfatheredDb

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).