Package CHEM :: Package DB :: Package rdb :: Module BeautifulSoup :: Class NavigableString
[hide private]
[frames] | no frames]

Class NavigableString



object --+        
         |        
basestring --+    
             |    
       unicode --+
                 |
   PageElement --+
                 |
                NavigableString
Known Subclasses:
CData, Comment, Declaration, ProcessingInstruction

Instance Methods [hide private]
 
__getattr__(self, attr)
text.string gives you text.
 
__unicode__(self)
 
__str__(self, encoding='utf-8')
str(x)

Inherited from unicode: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __new__, __repr__, __rmod__, __rmul__, capitalize, center, count, decode, encode, endswith, expandtabs, find, 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 object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__

Inherited from PageElement: extract, fetchNextSiblings, fetchParents, fetchPrevious, fetchPreviousSiblings, findAllNext, findAllPrevious, findNext, findNextSibling, findNextSiblings, findParent, findParents, findPrevious, findPreviousSibling, findPreviousSiblings, insert, nextGenerator, nextSiblingGenerator, parentGenerator, previousGenerator, previousSiblingGenerator, replaceWith, setup, substituteEncoding, toEncoding

Inherited from PageElement (private): _findAll, _findOne, _lastRecursiveChild

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getattr__(self, attr)
(Qualification operator)

 
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.

__str__(self, encoding='utf-8')
(Informal representation operator)

 
str(x)
Overrides: unicode.__str__
(inherited documentation)