New submission from Kálmán Gergely <kalman.gerg...@duodecad.hu>:

socket.fromfd()'s behaviour is somewhat counter-intutive and should contain a 
note to warn the user that it'll leave the original FD open. This is important 
if someone forgets to manually close the file descriptor as it might lead to FD 
leaks (and kernel memory leaks). This is especially the case when there is no 
python object associated with the FD, so no destruction will take place.

patch applies to this:
http://docs.python.org/py3k/archives/python-3.1.2-docs-html.tar.bz2

The only thing it does is that it adds a note section with the following 
message: "The original file descriptor will not be closed."

synapse

----------
assignee: d...@python
components: Documentation
files: fromfd_doc.patch
keywords: patch
messages: 118637
nosy: d...@python, synapse
priority: normal
severity: normal
status: open
title: socket.fromfd() documentation problem
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file19230/fromfd_doc.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to