[issue38294] re.escape no longer escapes "/" or ":"

2019-09-30 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- components: +Regular Expressions versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16021 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16442 ___ Python tracker ___

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- assignee: -> docs@python components: +Documentation -Regular Expressions nosy: +docs@python type: behavior -> enhancement ___ Python tracker ___

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Ricardo Bánffy added the comment: Indeed. It was easy to miss because of the joining and sorting. Being explicit on the 3.7 changes, that '!', '"', '%', "'", ',', '/', ':', ';', '<', '=', '>', '@', '`' were up to 3.6 but are no longer escaped since 3.7, would be nice. --

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is already documented. There are even examples which contain "/" and ":". -- ___ Python tracker ___

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Ricardo Bánffy added the comment: Thanks for the clarification, Serhiy. Should we update the 3.7 docs to warn others about it? -- ___ Python tracker ___

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is deliberate. "/" and ":" do not have special meaning in regular expressions and do not need escaping. re.escape() now produces more human-readable result and works faster. -- nosy: +serhiy.storchaka

[issue38294] re.escape no longer escapes "/" or ":"

2019-09-27 Thread Ricardo Bánffy
Change by Ricardo Bánffy : -- title: re.escape seems to miss some importante regex characters -> re.escape no longer escapes "/" or ":" ___ Python tracker ___