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

Docs for StringIO should link to io.BytesIO #71004

Closed
guettli mannequin opened this issue Apr 21, 2016 · 2 comments
Closed

Docs for StringIO should link to io.BytesIO #71004

guettli mannequin opened this issue Apr 21, 2016 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@guettli
Copy link
Mannequin

guettli mannequin commented Apr 21, 2016

BPO 26817
Nosy @ZackerySpytz

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 2020-05-10.00:42:35.088>
created_at = <Date 2016-04-21.13:31:25.821>
labels = ['docs']
title = 'Docs for StringIO should link to io.BytesIO'
updated_at = <Date 2020-05-10.00:42:35.087>
user = 'https://bugs.python.org/guettli'

bugs.python.org fields:

activity = <Date 2020-05-10.00:42:35.087>
actor = 'zach.ware'
assignee = 'docs@python'
closed = True
closed_date = <Date 2020-05-10.00:42:35.088>
closer = 'zach.ware'
components = ['Documentation']
creation = <Date 2016-04-21.13:31:25.821>
creator = 'guettli'
dependencies = []
files = []
hgrepos = []
issue_num = 26817
keywords = []
message_count = 2.0
messages = ['263917', '368550']
nosy_count = 3.0
nosy_names = ['guettli', 'docs@python', 'ZackerySpytz']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue26817'
versions = ['Python 2.7']

@guettli
Copy link
Mannequin Author

guettli mannequin commented Apr 21, 2016

I think a warning at the top of StringIO docs is needed.

And it should link to io.BytesIO.

Maybe even deprecate StringIO and cStringIO in Python2?

StringIO docs: https://docs.python.org/2/library/stringio.html

io.BytesIO docs: https://docs.python.org/2/library/io.html#io.BytesIO

I would like to see this at the top of StringIO:

{{{
Please use io.BytesIO and io.StringIO since this module is not supported in Python3
}}

@guettli guettli mannequin assigned docspython Apr 21, 2016
@guettli guettli mannequin added the docs Documentation in the Doc dir label Apr 21, 2016
@ZackerySpytz
Copy link
Mannequin

ZackerySpytz mannequin commented May 9, 2020

Python 2 is EOL.

@zware zware closed this as completed May 10, 2020
@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
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant