Package lxml :: Package html :: Module diff :: Class tag_token |
[hide private]
[frames] | no frames]

# Class tag_token

source code

    object --+
             |
    basestring --+
                 |
           unicode --+
                     |
                 token --+
                         |
                        tag_token

Represents a token that is actually a tag. Currently this is just the <img> tag, which takes up visible space just like a word but is only represented in a document by a tag.

Instance Methods | [hide private]
__repr__(self) repr(x) | source code
html(self) | source code
Inherited from `unicode`: `__add__`, `__contains__`, `__eq__`, `__format__`, `__ge__`, `__getattribute__`, `__getitem__`, `__getnewargs__`, `__getslice__`, `__gt__`, `__hash__`, `__le__`, `__len__`, `__lt__`, `__mod__`, `__mul__`, `__ne__`, `__rmod__`, `__rmul__`, `__sizeof__`, `__str__`, `capitalize`, `center`, `count`, `decode`, `encode`, `endswith`, `expandtabs`, `find`, `format`, `index`, `isalnum`, `isalpha`, `isdecimal`, `isdigit`, `islower`, `isnumeric`, `isspace`, `istitle`, `isupper`, `join`, `ljust`, `lower`, `lstrip`, `partition`, `replace`, `rfind`, `rindex`, `rjust`, `rpartition`, `rsplit`, `rstrip`, `split`, `splitlines`, `startswith`, `strip`, `swapcase`, `title`, `translate`, `upper`, `zfill` Inherited from `unicode` (private): `_formatter_field_name_split`, `_formatter_parser` Inherited from `object`: `__delattr__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__subclasshook__`

Static Methods | [hide private]
a new object with type S, a subtype of T |
__new__(cls, tag, data, html_repr, pre_tags=None, post_tags=None, trailing_whitespace=False) | source code

Class Variables | [hide private]
Inherited from `token`: `hide_when_equal`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __new__(cls, tag, data, html_repr, pre_tags=None, post_tags=None, trailing_whitespace=False) Static Method | source code
Returns: a new object with type S, a subtype of T Overrides: object.__new__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### html(self) | source code
Overrides: token.html