Trees Indices Help
Python Standard Library
Package email :: Module feedparser :: Class BufferedSubFile
[]

type BufferedSubFile

object --+
 |
 BufferedSubFile

A file-ish object that can have new data loaded into it.

You can also push and pop line-matching predicates onto a stack. When the current predicate matches the current line, a false EOF response (i.e. empty string) is returned instead. This lets the parser adhere to a simple abstraction -- it parses until EOF closes the current message.

Instance Methods [hide private]
__init__(self)
push_eof_matcher(self, pred)
pop_eof_matcher(self)
close(self)
readline(self)
unreadline(self, line)
push(self, data)
Push some new data into this object.
pushlines(self, lines)
is_closed(self)
__iter__(self)
next(self)
Method Details [hide private]

__init__(self)
(Constructor)

Overrides: object.__init__
(inherited documentation)

Trees Indices Help
Python Standard Library

AltStyle によって変換されたページ (->オリジナル) /