Issue 19656: Add Py3k warning for non-ascii bytes literals (original) (raw)
Issue19656
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/63855
classification
Title: | Add Py3k warning for non-ascii bytes literals | ||
---|---|---|---|
Type: | enhancement | Stage: | resolved |
Components: | Interpreter Core | Versions: | Python 2.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | serhiy.storchaka | Nosy List: | Arfrever, benjamin.peterson, martin.panter, python-dev, serhiy.storchaka, vstinner |
Priority: | normal | Keywords: | patch |
Created on 2013-11-19 18:09 by serhiy.storchaka, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
py3kwarn_nonascii_bytes_literals.patch | serhiy.storchaka,2013-11-19 18:09 | review |
Messages (3) | ||
---|---|---|
msg203406 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2013-11-19 18:09 |
PEP 3112 had added bytes literals in 2.6. But bytes literals in 2.x are just synonyms to 8-bit string literals and allow non-ascii characters, while bytes literals in 3.x allows only ascii characters. For better forward compatibility with 3.x the proposed patch adds Py3k syntax warning for non-ascii bytes literals in 2.7. | ||
msg219506 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2014-06-01 15:19 |
Benjamin, what you think about this? | ||
msg219519 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2014-06-01 19:13 |
New changeset 6bd21268876e by Serhiy Storchaka in branch '2.7': Issue #19656: Running Python with the -3 option now also warns about http://hg.python.org/cpython/rev/6bd21268876e |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:53 | admin | set | github: 63855 |
2014-06-01 19:19:40 | serhiy.storchaka | set | status: open -> closedassignee: serhiy.storchakaresolution: fixedstage: patch review -> resolved |
2014-06-01 19:14:00 | python-dev | set | nosy: + python-devmessages: + |
2014-06-01 15:19:26 | serhiy.storchaka | set | messages: + |
2014-05-13 17:40:54 | Arfrever | set | nosy: + Arfrever |
2014-05-13 10:45:17 | vstinner | set | nosy: + vstinner |
2013-11-20 22:04:13 | martin.panter | set | nosy: + martin.panter |
2013-11-20 00:01:45 | pitrou | set | nosy: + benjamin.peterson |
2013-11-19 18:09:47 | serhiy.storchaka | create |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements