[New-bugs-announce] [issue16915] mode of socket.makefile is more limited than documentation suggests

Antoon Pardon report at bugs.python.org
Thu Jan 10 14:40:17 CET 2013


New submission from Antoon Pardon:

The documentation of socket.makefile states that its arguments are interpreted the same way as by the built-in open() function. However the mode argument of socket.makefile only allows 'r', 'w' and 'b'.

That some options are not allowed seems perfectly normal, like there being no use of an 'x' option but the documentation should probably reflect that.

But I don't see why the 't' should cause trouble. If people can open a file explicitly in text mode, I don't see why it wouldn't be possible to explicitly ask for text mode in socket.makefile

----------
components: Library (Lib)
messages: 179543
nosy: Antoon.Pardon
priority: normal
severity: normal
status: open
title: mode of socket.makefile is more limited than documentation suggests
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16915>
_______________________________________


More information about the New-bugs-announce mailing list