[docs] [issue14303] Incorrect documentation for socket.py on linux

Shane Hansen report at bugs.python.org
Wed Mar 14 17:58:18 CET 2012

New submission from Shane Hansen <shanemhansen at gmail.com>:

The python docs state that for socket.makefile "The file object references a dup()ped version of the socket file descriptor, so the file object and socket object may be closed or garbage-collected independently."

In fact for socket.py dup() is never called, and no additional files are opened. Instead an object is returned which uses the original socket and does buffering.

For me, this is the desired behaviour, but just thought I'd mention the docs were off.

assignee: docs at python
components: Documentation, IO
files: test.py
messages: 155768
nosy: Shane.Hansen, docs at python, georg.brandl, pitrou
priority: normal
severity: normal
status: open
title: Incorrect documentation for socket.py on linux
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file24843/test.py

Python tracker <report at bugs.python.org>

More information about the docs mailing list