[2.7] bpo-30134: add BytesWarning in warnings.rst by methane · Pull Request #12738 · python/cpython

Conversation

serhiy-storchaka

| | Unicode. |
+----------------------------------+-----------------------------------------------+
| :exc:`BytesWarning` | Base category for warnings related to |
| | str and bytearray. |

Choose a reason for hiding this comment

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

I would keep bytes

Choose a reason for hiding this comment

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

Actually both str and bytes are not related. Keep just bytearray. Fix also the description in the other place.

Labels