t.p._._Attribute(object, FancyEqMixin) : class documentation

Part of twisted.python._textattributes View Source View In Hierarchy

Known subclasses: twisted.python._textattributes._ColorAttr, twisted.python._textattributes._NormalAttr, twisted.python._textattributes._OtherAttr

A text attribute.

Indexing a text attribute with a str or another text attribute adds that object as a child, indexing with a list or tuple adds the elements as children; in either case self is returned.

Instance Variable children Child attributes. (type: list)
Method __init__ Undocumented
Method __repr__ Undocumented
Method __getitem__ Undocumented
Method serialize Serialize the text attribute and its children.

Inherited from FancyEqMixin:

Method __eq__ Undocumented
Method __ne__ Undocumented
children =
Child attributes. (type: list)
def __init__(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
def __getitem__(self, item): (source)
Undocumented
def serialize(self, write, attrs=None, attributeRenderer='toVT102'): (source)
Serialize the text attribute and its children.
Parameterswritecallable, taking one str argument, called to output a single text attribute at a time.
attrsA formatting state instance used to determine how to serialize the attribute children.
attributeRendererName of the method on attrs that should be called to render the attributes during serialization. Defaults to 'toVT102'. (type: str)
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.