[New-bugs-announce] [issue10099] socket.fromfd() documentation problem

Kálmán Gergely report at bugs.python.org
Thu Oct 14 10:42:45 CEST 2010


New submission from Kálmán Gergely <kalman.gergely at 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: docs at python
components: Documentation
files: fromfd_doc.patch
keywords: patch
messages: 118637
nosy: docs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10099>
_______________________________________


More information about the New-bugs-announce mailing list