[New-bugs-announce] [issue16915] mode of socket.makefile is more limited than documentation suggests
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)
title: mode of socket.makefile is more limited than documentation suggests
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce