1 message in org.python.python-bugs-list[ python-Bugs-925107 ] _Subfile.readl...
FromSent OnAttachments
SourceForge.netMar 28, 2004 6:31 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-925107 ] _Subfile.readline( ) in mailbox.py ignoring self.stopActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 28, 2004 6:31:40 pm
List:org.python.python-bugs-list

Bugs item #925107, was opened at 2004-03-28 18:31 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=925107&group_id=5470

Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Submitted By: Sye van der Veen (syeberman) Assigned to: Nobody/Anonymous (nobody) Summary: _Subfile.readline( ) in mailbox.py ignoring self.stop

Initial Comment: I&#039;m using Python 2.3.3 (on Windows, but that shouldn&#039;t matter) and I&#039;ve noticed a problem with the internal _Subfile class in mailbox.py. The readline method doesn&#039;t consider self.stop if the length argument is not None. It has: if length is None: length = self.stop - self.pos when really it should have something like: if length is None or length < 0: length = remaining elif length > remaining: length = remaining which is what the read method does.

----------------------------------------------------------------------