[ python-Bugs-1679498 ] Lib/io.py open uses unset "bs"
SourceForge.net
noreply at sourceforge.net
Tue Mar 13 03:28:05 CET 2007
Bugs item #1679498, was opened at 2007-03-12 22:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1679498&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Lib/io.py open uses unset "bs"
Initial Comment:
Within the open function, it says
"""
try:
bs = os.fstat(raw.fileno()).st_blksize
except (os.error, AttributeError):
if bs > 1:
buffering = bs
"""
Since this is the first use of name "bs", I wouldn't expect it to have any value after an Exception. If this is actually correct, it at least deserves a comment.
-----------------
(second issue)
_PyFileIO sets self._writable but doesn't use it (even in writable())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1679498&group_id=5470
More information about the Python-bugs-list
mailing list