Input/output — selkie.pyx.io
The io module contains input and output streams.
Filename suffixes
- selkie.pyx.io.ispathlike(x)
- selkie.pyx.io.strip_suffix(fn)
- selkie.pyx.io.split_suffix(fn)
- selkie.pyx.io.get_suffix(fn)
Syntax
- class selkie.pyx.io.Token
- class selkie.pyx.io.Syntax(special=None, eol=False, comments=True, multi=None, backslash=True, stringtype='word', mlstrings=False, digits=False)
Special streams
- selkie.pyx.io.pprint(*strs)
- selkie.pyx.io.tabular(rows, header=None, indent='', tostring=<class 'str'>, hlines=True)
- selkie.pyx.io.redirect()
Example:
with redirect() as s: pprint('foo') with pprint.indent(): pprint('bar') return str(s)
- class selkie.pyx.io.BackingSave(fn, binary=False, makedirs=False)