This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Neil Muller, benjamin.peterson, christian.heimes, loewis, pitrou
Date 2010-03-25.16:00:28
SpamBayes Score 6.42415e-06
Marked as misclassified No
Message-id <>
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:30pitrousetrecipients: + pitrou, loewis, christian.heimes, benjamin.peterson, Neil Muller
2010-03-25 16:00:30pitrousetmessageid: <>
2010-03-25 16:00:28pitroulinkissue2768 messages
2010-03-25 16:00:28pitroucreate