[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
Santoso Wijaya added the comment: >_< Should've read the docs again more carefully before submitting. -- ___ Python tracker ___ ___ P

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Georg Brandl
Georg Brandl added the comment: 1. The class for read-only objects is called "StringI" (the one for read-write objects is "StringO"). 2./3. This is documented: http://docs.python.org/library/stringio#cStringIO.StringIO These differences between StringIO and cStringIO are unfortunate, but can

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
New submission from Santoso Wijaya : Observe: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from cStringIO import StringIO >>> result = StringIO('Hello, ') >>> result.write('world')