class documentation

class symbol(int): (source)

View In Hierarchy

A constant symbol. >>> symbol('foo') is symbol('foo') True >>> symbol('foo') <symbol 'foo> A slight refinement of the MAGICCOOKIE=object() pattern. The primary advantage of symbol() is its repr(). They are also singletons. Repeated calls of symbol('name') will all return the same instance.

Method __new__ Undocumented
Method __reduce__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Class Variable name Undocumented
Class Variable symbols Undocumented
Class Variable _lock Undocumented
def __new__(cls, name: str, doc: Optional[str] = None, canonical: Optional[int] = None) -> symbol: (source)

Undocumented

def __reduce__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

Undocumented

Undocumented

Undocumented