Package libxyz :: Package parser :: Module sourcedata :: Class SourceData |
[hide private]
[frames] | no frames]

# Class SourceData

source code

    object --+
             |
            SourceData

Source data iterator class

Instance Methods | [hide private]
__init__(self, source, bytes=True) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__iter__(self) | source code
next(self) | source code
_next_file(self) | source code
_next_string(self) | source code
unget(self, string) Put token back onto input stream | source code
desc(self) Get source data description | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| FILE = `0`
| STRING = `1`

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

Method Details | [hide private]

### __init__(self, source, bytes=True) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Parameters: `source` (String or file-like object) - Source `bytes` - If True then object will produce single byte on iteration Otherwise it will be single line. Overrides: object.__init__