[2.7] bpo-30134: add an explanation of BytesWarning by cocoatomo · Pull Request #1249 · python/cpython

@cocoatomo

@cocoatomo

vadmium


.. exception:: BytesWarning

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

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 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