Secret readinto() method for file objects?
tim.one at home.com
Mon May 21 02:44:31 EDT 2001
> Just doing a simple test to see what's inside a file object in Python 2.1,
> and I find:
> >>>file = open('test.txt', 'w')
> ['close', 'closed', 'fileno', 'flush', 'isatty', 'mode', 'name', 'read',
> 'readinto', 'readline', 'readlines', 'seek', 'softspace', 'tell',
> 'truncate', 'write', 'writelines', 'xreadlines']
> <built-in method readinto of file object at 00B33060>
> The above file object method has no helpful doc string, nor is it
> documented at
Correct on both counts.
> Has someone secretly developed a new standard file object method without
> letting us know? =)
Yes, but it's been sitting there a long time by now. As soon as it's of any
conceivable use, it will get documented. Or perhaps it will just go away
> Also... a side note: It would be nice if Python had doc strings for ALL
> of its builtin modules and their respective classes/methods/functions.
SourceForge is open for patches 24 hours a day.
take-a-docstring-leave-a-docstring-ly y'rs - tim
More information about the Python-list