Message101713
Actually, I'm not sure it's a good idea. For example, calling os.ftruncate(fobj) on a py3k file object will bypass the object's internal buffering, ignoring any pending buffered data; the right thing to do is to call fobj.truncate() instead.
It may be better to simply mention in the docs that fileno() can be used on file-like objects to get a file descriptor, if needed. |
|
Date |
User |
Action |
Args |
2010-03-25 16:00:30 | pitrou | set | recipients:
+ pitrou, loewis, christian.heimes, benjamin.peterson, Neil Muller |
2010-03-25 16:00:30 | pitrou | set | messageid: <1269532830.07.0.457793799944.issue2768@psf.upfronthosting.co.za> |
2010-03-25 16:00:28 | pitrou | link | issue2768 messages |
2010-03-25 16:00:28 | pitrou | create | |
|