msg292099 - (view) |
Author: Tomohiko Kinebuchi (cocoatomo) * |
Date: 2017-04-22 03:49 |
In Python 2.6, BytesWarning was added, but a description of that warning is missing from the document, library/exceptions.rst. |
|
|
msg292101 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2017-04-22 04:41 |
BytesWarning should be added in the table in warnings.rst (and check that all other built-in warning categories are in this table). It is worth to mention the -b option. And I think the docstring of BytesWarning should be corrected. "Unicode" should be used rather that "str" since str and bytes is the same in 2.7. |
|
|
msg292145 - (view) |
Author: Martin Panter (martin.panter) *  |
Date: 2017-04-23 01:13 |
. Issue 11681 is already open for the -b option, with a patch in progress. If updating the doc string, also change “buffer” to “bytearray”. This is what “bytearray” was originally called in Python 3, and “buffer” is something different in Python 2. |
|
|
msg339701 - (view) |
Author: Inada Naoki (methane) *  |
Date: 2019-04-09 05:43 |
New changeset d012d64b6a513e760abb6745f7f7ce5e6a31f274 by Inada Naoki (cocoatomo) in branch '2.7': bpo-30134: add an explanation of BytesWarning (GH-1249) https://github.com/python/cpython/commit/d012d64b6a513e760abb6745f7f7ce5e6a31f274 |
|
|
msg339704 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2019-04-09 05:59 |
This PR was not ready to merge. Please address my and Martin's comments. |
|
|
msg339707 - (view) |
Author: Inada Naoki (methane) *  |
Date: 2019-04-09 06:31 |
I addressed Martin's comment (buffer -> bytesarray). But I missed your point, sorry. |
|
|
msg339708 - (view) |
Author: Inada Naoki (methane) *  |
Date: 2019-04-09 07:00 |
New changeset 87ed1beb3e15c619f25b9a9308d1ec35659feffd by Inada Naoki in branch '2.7': bpo-30134: add BytesWarning in warnings.rst (GH-12738) https://github.com/python/cpython/commit/87ed1beb3e15c619f25b9a9308d1ec35659feffd |
|
|
msg339713 - (view) |
Author: Serhiy Storchaka (serhiy.storchaka) *  |
Date: 2019-04-09 08:16 |
In 2.7 BytesWarning is emitted only on comparison between bytearray and unicode. All descriptions and comments should be corrected. |
|
|
msg339741 - (view) |
Author: Inada Naoki (methane) *  |
Date: 2019-04-09 12:49 |
New changeset 4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d by Inada Naoki in branch '2.7': bpo-30134: fix BytesWarning doc, docstring and message (GH-12739) https://github.com/python/cpython/commit/4e8e8aabc6e6ae1c989ef288be7bddfdbbc3187d |
|
|