Keith> class TextFile(UserFile): Keith> """TextFile(self, name, mode="r", bufsize=-1, linesep=None) Keith> A file object that handles different line separator Keith> conventions. This file object's readline() method returns the Keith> line with trailing line separator stripped, and raises EOFError Keith> on end of file. The writelines() method will append an Keith> appropriate line separator when writing. Thus, this file object Keith> allows reading and writeing non-native text files. Keith> """ Is there a reason the universal newline mode doesn't cover this case already? Keith> """MergedIO(outfile, infile) Keith> Combines a write stream and a read stream into one read/write Keith> object.""" And isn't this subsumed by mode='r+'? Skip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4