[Patches] [ python-Patches-1774828 ] Override flags set by IOBase in io.StringIO

SourceForge.net noreply at sourceforge.net
Tue Aug 21 20:29:41 CEST 2007


Patches item #1774828, was opened at 2007-08-15 12:13
Message generated for change (Comment added) made by avassalotti
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1774828&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: Library (Lib)
Group: Python 3000
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Alexandre Vassalotti (avassalotti)
Assigned to: Nobody/Anonymous (nobody)
Summary: Override flags set by IOBase in io.StringIO

Initial Comment:
This patch fixes a small bug in the flags of io.StringIO:

    >>> import io
    >>> s = io.StringIO()
    >>> s.writable()
    False
    >>> s.seekable()
    False
    >>> s.readable()
    False

All the flags should have the value True. 

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

>Comment By: Alexandre Vassalotti (avassalotti)
Date: 2007-08-21 14:29

Message:
Logged In: YES 
user_id=1826340
Originator: YES

In my alex-py3k branch, I committed, in r57263, a better fix.

Closing.

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

Comment By: Alexandre Vassalotti (avassalotti)
Date: 2007-08-15 12:28

Message:
Logged In: YES 
user_id=1826340
Originator: YES

This should probably be fixed in TextIOWrapper too:

   >>> f = open("+spam", "w")
   >>> f.writable()
   False


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1774828&group_id=5470


More information about the Patches mailing list