Issue 8466: typo in tp_name of cStringIO (original) (raw)

Issue8466

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:00 admin set github: 52712
2010-04-20 10:22:48 eric.smith set status: open -> closednosy: + eric.smithmessages: + resolution: not a bugstage: resolved
2010-04-20 09:28:21 anthon create