[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4ab6abfca4d6e444cca04821b24701cde6993f4e by Serhiy Storchaka in branch 'master': bpo-30299: Display a bytecode when compile a regex in debug mode. (#1491) https://github.com/python/cpython/commit/4ab6abfca4d6e444cca04821b24701cde6993f4e --

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-08 Thread Jonathan Goble
Changes by Jonathan Goble : -- nosy: +Jonathan Goble ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops, the one I thought I added previously. I must not have clicked the [comment] button after writing it and before closing the tab. -- ___ Python tracker

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What the review note you mean Terry? -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The new output is the blank line and numbered lines, produced by the new dis function. The addition is specific to CPython's re module. Thus the doc for re.DEBUG remains "Display debug information about compiled expression." I think that the NEWS entry shou

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1593 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes compiling a regular expression in debug mode (with the re.DEBUG flag) displaying the bytecode in human readable form (in addition to the syntax tree). For example: >>> re.compile('test_[a-z_]+', re.DEBUG) LITERAL 116 LITERAL 101 LITERA