Skip to content

[2.7] bpo-30134: add an explanation of BytesWarning #1249

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

Merged
merged 2 commits into from
Apr 9, 2019
Merged

[2.7] bpo-30134: add an explanation of BytesWarning #1249

merged 2 commits into from
Apr 9, 2019

Conversation

cocoatomo
Copy link
Contributor

@cocoatomo cocoatomo commented Apr 22, 2017

@@ -524,6 +524,13 @@ module for more information.
.. versionadded:: 2.5


.. exception:: BytesWarning

Base class for warnings related to :class:`bytes` and :class:`bytearray`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Python 2, bytes is just an (undocumented?) alias for str. I’m not aware of BytesWarning being used in relation to Python 2’s str type.

@vstinner vstinner changed the title bpo-30134: Add an explanation of BytesWarning [2.7] bpo-30134: Add an explanation of BytesWarning Apr 25, 2017
@methane methane closed this Apr 9, 2019
@methane methane reopened this Apr 9, 2019
@methane methane added skip news docs Documentation in the Doc dir labels Apr 9, 2019
@methane methane changed the title [2.7] bpo-30134: Add an explanation of BytesWarning [2.7] bpo-30134: add an explanation of BytesWarning Apr 9, 2019
@methane methane merged commit d012d64 into python:2.7 Apr 9, 2019
@cocoatomo cocoatomo deleted the missing-bytes-warning branch April 17, 2019 02:10
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 skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants