io.IncrementalNewlineDecoder
¶
-
class
io.
IncrementalNewlineDecoder
¶ Codec used when reading a file in universal newlines mode. It wraps another incremental decoder, translating rn and r into n. It also records the types of newlines encountered. When used with translate=False, it ensures that the newline sequence is returned in one piece. When used with decoder=None, it expects unicode strings as decode input and translates newlines without first invoking an external decoder.
Methods¶
__format__ |
default object formatter |
__new__ ((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__sizeof__ (() -> int) |
size of object in memory, in bytes |
__subclasshook__ |
Abstract classes can override this to customize issubclass(). |
decode |
|
getstate |
|
reset |
|
setstate |