
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2017-06-17 07:38 byjonathaneunice, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 2261 | closed | jonathaneunice,2017-06-17 08:44 | |
| PR 5588 | merged | serhiy.storchaka,2018-02-08 17:09 | |
| PR 5606 | merged | fangyizhou,2018-02-10 01:13 | |
| Messages (7) | |||
|---|---|---|---|
| msg296234 -(view) | Author: Jonathan Eunice (jonathaneunice)* | Date: 2017-06-17 07:38 | |
The re module specially handles Unicode escapes (\uXXXX and \UXXXXXXXX) so that even raw strings (r'...') have symbolic Unicode characters. But it has not supported named Unicode escapes such as r'\N{EM DASH}', making the escapes for string literals and the escapes for regular expressions asymmetric | |||
| msg311912 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2018-02-09 22:08 | |
New changeseta445feb72902e4a3c5ae712f0c289309e1580d52 by Serhiy Storchaka in branch 'master':bpo-30688: Support \N{name} escapes in re patterns. (GH-5588)https://github.com/python/cpython/commit/a445feb72902e4a3c5ae712f0c289309e1580d52 | |||
| msg311913 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2018-02-09 22:09 | |
Thank you for your contribution Jonathan! | |||
| msg311923 -(view) | Author: Fangyi Zhou (fangyizhou)* | Date: 2018-02-10 00:31 | |
HelloThis leads to build failures due to circular dependencyAt generate-posix-vars stage, unicodedata is imported (due to import pprint)but it has not been built due to it being a C module. However, building C modules happen after generate-posix-vars.See full message below../python.exe -E -S -m sysconfig --generate-posix-vars ;\if test $? -ne 0 ; then \echo "generate-posix-vars failed" ; \rm -f ./pybuilddir.txt ; \exit 1 ; \fiTraceback (most recent call last): File "/Users/fangyi/cpython/Lib/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/fangyi/cpython/Lib/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/fangyi/cpython/Lib/sysconfig.py", line 700, in <module> _main() File "/Users/fangyi/cpython/Lib/sysconfig.py", line 688, in _main _generate_posix_vars() File "/Users/fangyi/cpython/Lib/sysconfig.py", line 350, in _generate_posix_vars import pprint File "/Users/fangyi/cpython/Lib/pprint.py", line 38, in <module> import re File "/Users/fangyi/cpython/Lib/re.py", line 123, in <module> import sre_compile File "/Users/fangyi/cpython/Lib/sre_compile.py", line 14, in <module> import sre_parse File "/Users/fangyi/cpython/Lib/sre_parse.py", line 16, in <module> import unicodedataModuleNotFoundError: No module named 'unicodedata'generate-posix-vars failed | |||
| msg311926 -(view) | Author: Ned Deily (ned.deily)*![]() | Date: 2018-02-10 02:41 | |
The buidbots are broken by this. Please fix or revert. | |||
| msg311938 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2018-02-10 06:59 | |
New changeset5df5286abda57a0b3865d4fc3e25aaf1a820ef49 by Serhiy Storchaka (Zhou Fangyi) in branch 'master':bpo-30688: Import unicodedata only when needed. (GH-5606)https://github.com/python/cpython/commit/5df5286abda57a0b3865d4fc3e25aaf1a820ef49 | |||
| msg311939 -(view) | Author: Serhiy Storchaka (serhiy.storchaka)*![]() | Date: 2018-02-10 07:03 | |
Thank you Fangyi Zhou for your report and fix. Changes are trivial and didn't require to sign CLA. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:47 | admin | set | github: 74873 |
| 2018-02-10 07:03:38 | serhiy.storchaka | set | priority: critical -> normal |
| 2018-02-10 07:03:26 | serhiy.storchaka | set | messages: +msg311939 |
| 2018-02-10 06:59:32 | serhiy.storchaka | set | messages: +msg311938 |
| 2018-02-10 02:41:04 | ned.deily | set | priority: normal -> critical nosy: +ned.deily messages: +msg311926 |
| 2018-02-10 01:13:18 | fangyizhou | set | pull_requests: +pull_request5417 |
| 2018-02-10 00:31:20 | fangyizhou | set | nosy: +fangyizhou messages: +msg311923 |
| 2018-02-09 22:09:13 | serhiy.storchaka | set | status: open -> closed resolution: fixed messages: +msg311913 stage: patch review -> resolved |
| 2018-02-09 22:08:19 | serhiy.storchaka | set | messages: +msg311912 |
| 2018-02-08 17:09:14 | serhiy.storchaka | set | keywords: +patch pull_requests: +pull_request5405 |
| 2018-02-04 12:53:57 | serhiy.storchaka | set | versions: + Python 3.8, - Python 3.7 |
| 2017-06-17 10:17:15 | serhiy.storchaka | set | nosy: +ezio.melotti components: + Regular Expressions |
| 2017-06-17 10:16:55 | serhiy.storchaka | set | assignee:serhiy.storchaka nosy: +serhiy.storchaka,mrabarnett stage: patch review |
| 2017-06-17 08:44:51 | jonathaneunice | set | pull_requests: +pull_request2311 |
| 2017-06-17 07:38:56 | jonathaneunice | create | |