Public Member Functions | |
def | __getattr__ |
def | __getnewargs__ |
def | __new__ |
def | __str__ |
def | __unicode__ |
Definition at line 449 of file BeautifulSoup.py.
def BeautifulSoup.NavigableString.__getattr__ | ( | self, | |
attr | |||
) |
text.string gives you text. This is for backwards compatibility for Navigable*String, but for CData* it lets you get the string without the CData wrapper.
Definition at line 466 of file BeautifulSoup.py.
Referenced by VarParsing.VarParsing.setType().
def BeautifulSoup.NavigableString.__getnewargs__ | ( | self | ) |
Definition at line 463 of file BeautifulSoup.py.
def BeautifulSoup.NavigableString.__new__ | ( | cls, | |
value | |||
) |
Create a new NavigableString. When unpickling a NavigableString, this method is called with the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be passed in to the superclass's __new__ or the superclass won't know how to handle non-ASCII characters.
Definition at line 451 of file BeautifulSoup.py.
Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().
def BeautifulSoup.NavigableString.__str__ | ( | self, | |
encoding = DEFAULT_OUTPUT_ENCODING |
|||
) |
Definition at line 478 of file BeautifulSoup.py.
Referenced by BeautifulSoup.Tag.__repr__(), BeautifulSoup.Tag.__unicode__(), and BeautifulSoup.Tag.prettify().
def BeautifulSoup.NavigableString.__unicode__ | ( | self | ) |
Definition at line 475 of file BeautifulSoup.py.
References edm.decode().