|
|
__init__(self,
sequence,
id=None,
factory=None,
max=None,
global_kargs=None,
cache_level=None,
delta=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
key(self,
state,
other)
Generate an object that can be hashed (implements __hash__ and __eq__). |
source code
|
|
|
|
_fmt(self,
sequence,
offset,
maxlen=60,
left='',
right='',
index=True)
fmt a possibly long subsection of data. |
source code
|
|
|
|
_location(self,
kargs,
prefix)
Location (separate method so subclasses can replace). |
source code
|
|
|
|
|
|
|
kargs(self,
state,
prefix='',
kargs=None)
Generate a dictionary of values that describe the stream. |
source code
|
|
|
|
next(self,
state,
count=1)
Return (value, stream) where value is the next value (or
values if count > 1) from the stream and stream is advanced to the
next character. |
source code
|
|
|
|
join(self,
state,
*values)
Join sequences of values into a single sequence. |
source code
|
|
|
|
|
|
|
|
|
|
len(self,
state)
Return the remaining length of the stream. |
source code
|
|
|
|
stream(self,
state,
value,
id_=None,
max=None)
Return a new stream that encapsulates the value given, starting at
state. |
source code
|
|
|
|
|
|
|
|
|
|
delta(self,
state)
Return the offset, lineno and char of the current point, relative to
the entire stream, as a tuple. |
source code
|
|
|
|
new_max(self,
state)
Return (old max, new stream), where new stream uses a new max. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
Inherited from core.StreamHelper:
__eq__,
cacheable,
eq,
fmt
|