LangTag.RedundantDb

Fields

None

Methods

class

new ()

lookup (tag)

ref ()

unref ()

Details

class LangTag.RedundantDb

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

classmethod new()
Returns:

a new instance of LangTag.RedundantDb.

Return type:

LangTag.RedundantDb

Create a new instance of a LangTag.RedundantDb.

lookup(tag)
Parameters:

tag (str) – a tag name to lookup.

Returns:

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

Return type:

LangTag.Redundant

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

ref()
Returns:

the same self object.

Return type:

LangTag.RedundantDb

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