[issue33691] Refactor docstring handling code in the compiler

2018-05-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33691] Refactor docstring handling code in the compiler

2018-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 143ce5c6db77a0b9d451b8463dee6752358a9ea4 by Serhiy Storchaka in branch 'master': bpo-33691: Add _PyAST_GetDocString(). (GH-7236) https://github.com/python/cpython/commit/143ce5c6db77a0b9d451b8463dee6752358a9ea4 -- __

[issue33691] Refactor docstring handling code in the compiler

2018-05-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6866 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue33691] Refactor docstring handling code in the compiler

2018-05-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Similar non-trivial code is used in several places in the compiler for handling docstrings. The proposed PR adds a helper _PyAST_GetDocString() for reusing a code. -- components: Interpreter Core messages: 318155 nosy: benjamin.peterson, brett.ca