Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in cStringIO tp_name #64581

Closed
mailination mannequin opened this issue Jan 24, 2014 · 2 comments
Closed

Typo in cStringIO tp_name #64581

mailination mannequin opened this issue Jan 24, 2014 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mailination
Copy link
Mannequin

mailination mannequin commented Jan 24, 2014

BPO 20382
Nosy @vstinner

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-01-24.17:17:37.014>
created_at = <Date 2014-01-24.17:11:01.693>
labels = ['invalid', 'type-bug', 'library']
title = 'Typo in cStringIO tp_name'
updated_at = <Date 2014-01-24.17:17:36.994>
user = 'https://bugs.python.org/mailination'

bugs.python.org fields:

activity = <Date 2014-01-24.17:17:36.994>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2014-01-24.17:17:37.014>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2014-01-24.17:11:01.693>
creator = 'mailination'
dependencies = []
files = []
hgrepos = []
issue_num = 20382
keywords = []
message_count = 2.0
messages = ['209099', '209101']
nosy_count = 2.0
nosy_names = ['vstinner', 'mailination']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue20382'
versions = ['Python 2.7']

@mailination
Copy link
Mannequin Author

mailination mannequin commented Jan 24, 2014

python/Modules/cStringIO.c:648

"cStringIO.StringI", /tp_name/

maybe Should be

"cStringIO.StringIO", /tp_name/

@mailination mailination mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Jan 24, 2014
@vstinner
Copy link
Member

I don't think that it is a typo. cStringIO.StringIO(str) returns a "StringI" object, whereas cStringIO.StringIO() returns a "StringO" object.

$ python
Python 2.7.5 (default, Nov 12 2013, 16:45:54) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cStringIO
>>> cStringIO.StringIO('abc')
<cStringIO.StringI object at 0x7f407d1dae88>
>>> cStringIO.StringIO()
<cStringIO.StringO object at 0x7f407d0f4e68>

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant