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: typo in tp_name of cStringIO
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: anthon, eric.smith
Priority: normal Keywords:

Created on 2010-04-20 09:28 by anthon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg103687 - (view) Author: Anthon van der Neut (anthon) * Date: 2010-04-20 09:28
if you execute the following code from 
  cStringIO import StringIO
  x = StringIO()
  x.get_value()
you will see that the AttributeError line has a typo
it displays 'cStringIO.StringO' instead of 'cStringIO.StringIO'
this error is in line 529 of the Modules/cStringIO.c code (of 2.7b1)
msg103691 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-04-20 10:22
From issue 8121:

That name is actually correct.  cStringIO features two different types, depending on whether you call cStringIO.StringIO() with or without an argument.  One is called "StringI", the other "StringO".
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52712
2010-04-20 10:22:48eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg103691

resolution: not a bug
stage: resolved
2010-04-20 09:28:21anthoncreate