[issue39721] Fix constness of members of tok_state struct.

2020-02-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 384f3c536dd15ba33ea7e8afb4087ae359d4c12e by Andy Lester in branch 'master': closes bpo-39721: Fix constness of members of tok_state struct. (GH-18600) https://github.com/python/cpython/commit/384f3c536dd15ba33ea7e8afb4087ae359d4c12e ---

[issue39721] Fix constness of members of tok_state struct.

2020-02-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +serhiy.storchaka, vstinner type: -> behavior versions: +Python 3.9 ___ Python tracker ___ ___ Pyt

[issue39721] Fix constness of members of tok_state struct.

2020-02-21 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +17967 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18600 ___ Python tracker ___

[issue39721] Fix constness of members of tok_state struct.

2020-02-21 Thread Andy Lester
New submission from Andy Lester : The function PyTokenizer_FromUTF8 from Parser/tokenizer.c had a comment: /* XXX: constify members. */ This patch addresses that. In the tok_state struct: * end and start were non-const but could be made const * str and input were const but should