This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Override flags set by IOBase in io.StringIO
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alexandre.vassalotti
Priority: normal Keywords: patch

Created on 2007-08-15 16:13 by alexandre.vassalotti, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
override_iobase_flags.patch alexandre.vassalotti, 2007-08-15 16:13
Messages (3)
msg53033 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-08-15 16:13
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. 
msg53034 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-08-15 16:28
This should probably be fixed in TextIOWrapper too:

   >>> f = open("+spam", "w")
   >>> f.writable()
   False
msg53035 - (view) Author: Alexandre Vassalotti (alexandre.vassalotti) * (Python committer) Date: 2007-08-21 18:29
In my alex-py3k branch, I committed, in r57263, a better fix.

Closing.
History
Date User Action Args
2022-04-11 14:56:26adminsetgithub: 45314
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-08-15 16:13:12alexandre.vassalotticreate