[New-bugs-announce] [issue18315] bufsize parameter not documented in 2.7.5

Terrel Shumway report at bugs.python.org
Thu Jun 27 17:59:58 CEST 2013


New submission from Terrel Shumway:

for line in fileinput.input(files,inplace,backup,"rU"):
  File "/usr/lib/python2.7/fileinput.py", line 253, in next
    line = self.readline()
  File "/usr/lib/python2.7/fileinput.py", line 346, in readline
    self._buffer = self._file.readlines(self._bufsize)
TypeError: an integer is required

According to the documentation, my code was correct. But somewhere along the line, someone added a 'bufsize' parameter and didn't update the docstrings.

It's an easy fix, but I'll have to investigate when this broke.

----------
assignee: docs at python
components: Documentation
messages: 191952
nosy: Terrel.Shumway, docs at python
priority: normal
severity: normal
status: open
title: bufsize parameter not documented in 2.7.5
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list