Issue 2713: Py3k warn on unicode escapes in raw strings (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/46965
classification
process
Created on 2008-04-28 21:42 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (4) |
|
|
msg65936 - (view) |
Author: Benjamin Peterson (benjamin.peterson) *  |
Date: 2008-04-28 21:42 |
This patch gives a Py3k warning when a unicode escape occurs in a raw unicode string. |
|
|
msg65958 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2008-04-29 06:31 |
This patch changes the raw-unicode-escape code to warn. Marc-Andre, is this OK? |
|
|
msg85743 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2009-04-07 20:14 |
I guess it isn't... |
|
|
msg88829 - (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *  |
Date: 2009-06-03 21:26 |
Why was this patch rejected? with python2.6, len(ur'\u1234') == 1 with python3.0, len( r'\u1234') == 6 This is worth a warning IMO. See also . |
|
|
History |
|
|
|
Date |
User |
Action |
Args |
2022-04-11 14:56:33 |
admin |
set |
github: 46965 |
2009-06-03 21:26:11 |
amaury.forgeotdarc |
set |
nosy: + amaury.forgeotdarcmessages: + |
2009-04-07 20:14:39 |
georg.brandl |
set |
status: open -> closedresolution: rejectedmessages: + |
2008-04-29 06:31:16 |
georg.brandl |
set |
assignee: lemburgmessages: + nosy: + georg.brandl, lemburg |
2008-04-28 22:56:16 |
benjamin.peterson |
set |
files: + unicode_escape_warn2.patch |
2008-04-28 21:42:54 |
benjamin.peterson |
create |
|