classification
Title: typo in tp_name of cStringIO
Type: behavior Stage: committed/rejected
Components: Library (Lib) Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: anthon, eric.smith
Priority: normal Keywords:

Created on 2010-04-20 09:28 by anthon, last changed 2010-04-20 10:22 by eric.smith. 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
2010-04-20 10:22:48eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg103691

resolution: invalid
stage: committed/rejected
2010-04-20 09:28:21anthoncreate