[issue36548] Make the repr of re flags more readable

2019-06-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36548] Make the repr of re flags more readable

2019-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 14a0e16c8805f7ba7c98132ead815dcfdf0e9d33 by Serhiy Storchaka in branch 'master': bpo-36548: Improve the repr of re flags. (GH-12715) https://github.com/python/cpython/commit/14a0e16c8805f7ba7c98132ead815dcfdf0e9d33 -- __

[issue36548] Make the repr of re flags more readable

2019-04-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12640 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36548] Make the repr of re flags more readable

2019-04-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently the repr of re flags contains the name of the private class and it is not an evaluable expression: >>> re.I >>> re.I|re.S|re.X The repr of inverted flags is even more verbose: >>> ~(re.I|re.S|re.X) The result of str() starves from the sam