[issue17275] io.BufferedWriter shows wrong type in argument error message

Manuel Jacob report at bugs.python.org
Fri Feb 22 12:51:50 CET 2013


New submission from Manuel Jacob:

>>> import io
>>> io.BufferedWriter(io.BytesIO(), 1024, 1024, 1024)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: BufferedReader() takes at most 2 arguments (4 given)

It should be "BufferedWriter()" instead of "BufferedReader()".

----------
messages: 182660
nosy: mjacob
priority: normal
severity: normal
status: open
title: io.BufferedWriter shows wrong type in argument error message
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4

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


More information about the Python-bugs-list mailing list