[issue6875] add os.close() suggestion to mkstemp documentation

2013-08-13 Thread Gabi Davar
Changes by Gabi Davar : -- nosy: +Gabi.Davar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-16 Thread Georg Brandl
Georg Brandl added the comment: That one has to close open files should be common knowledge. And it's already documented that the filehandle returned is to be treated as if coming from `os.open`, so the "isn't a file object" is documented as well. Insofar, I'm in agreement with David. ---

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-12 Thread R. David Murray
R. David Murray added the comment: Because if you want the Python file object, you should use TemporaryFile or NamedTemporaryFile. mkstemp is a lower level (closer to the os) interface, and is provided because Python has a philosophy of providing those low level interfaces when possible. Note

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-12 Thread Vincent Legoll
Vincent Legoll added the comment: The real question I had is why mkstemp return an os-level opened file descriptor instead of a python file object... -- ___ Python tracker ___ __

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-11 Thread R. David Murray
R. David Murray added the comment: I don't think it would be beneficial to just talk about closing the file descriptor, or to talk about os open file limits. Closing open files when they are no longer needed is just good programming practice and IMO a discussion of it doesn't belong in the libr

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-10 Thread Vincent Legoll
Vincent Legoll added the comment: Or a review of the markup I used -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-10 Thread Vincent Legoll
New submission from Vincent Legoll : As per the blog entry http://www.logilab.org/blogentry/17873 I think the tempfile.mkstemp() documentation could be more helpful by suggesting the use of os.close() appropriately. If some native english speaker could give a review of the language I used in th