[issue47212] Minor issues in reported Syntax errors

2022-04-04 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : Hi, While working on Pegen I noticed that: - the invalid_arguments rule would non point to the full generator expression in its second and fifth alternatives - when reporting an indentation error after a bare except, the error is actually a SyntaxError

[issue47212] Minor issues in reported Syntax errors

2022-04-04 Thread Matthieu Dartiailh
Change by Matthieu Dartiailh : -- keywords: +patch pull_requests: +30364 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32302 ___ Python tracker <https://bugs.python.org/issu

[issue47212] Minor issues in reported Syntax errors

2022-04-05 Thread Matthieu Dartiailh
Change by Matthieu Dartiailh : -- pull_requests: +30391 pull_request: https://github.com/python/cpython/pull/32334 ___ Python tracker <https://bugs.python.org/issue47

[issue44667] tokenize.py emits spurious NEWLINE if file ends on a comment without a newline

2021-07-18 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : Using tokenize.py to tokenize the attached file yields: 0,0-0,0:ENCODING 'utf-8' 1,0-1,2:NAME 'if' 1,3-1,4:NAME 'a' 1,4-1,5:OP &

[issue43129] Number of object on stack required by opcode

2021-02-04 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : When constructing bytecode object manually as can be done using the bytecode library (https://github.com/MatthieuDartiailh/bytecode which was first developed by V Stinner), one can use dis.stack_effect to compute the required stack size, thus avoiding

[issue41191] PyType_FromModuleAndSpec is not mentioned in 3.9 What's new

2020-07-01 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : Looking at the What's new for Python 3.9 I noticed that there was no mention of PEP 573. The added functions are properly documented and should probably be mentioned in the What's new. -- assignee: docs@python components: Doc

[issue41191] PyType_FromModuleAndSpec is not mentioned in 3.9 What's new

2020-09-03 Thread Matthieu Dartiailh
Change by Matthieu Dartiailh : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue41191> ___ ___ Python-bugs-list mailing list Un

[issue41703] Most bytecode changes are absent from Python 3.9 What's new

2020-09-03 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : A number of bytecodes have been added removed in Python 3.9 as documented in https://docs.python.org/3.9/library/dis.html. However only the addition of LOAD_ASSERTION_ERROR is currently documented in What's New. The relevant bpo issues are: -

[issue41703] Most bytecode changes are absent from Python 3.9 What's new

2020-09-30 Thread Matthieu Dartiailh
Matthieu Dartiailh added the comment: Looking at the current version of the page https://docs.python.org/3.9/whatsnew/3.9.html#cpython-bytecode-changes I still see only the LOAD_ASSERTION_ERROR. It seems the changelog got updated but not the What'

[issue30588] Missing documentation for codecs.escape_decode

2017-06-07 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh: codecs.escape_decode does not appear in the codecs documentation. This function is to my knowledge the only convenient way to process the escaped characters in a literal string (actually found here https://stackoverflow.com/questions/4020539/process

[issue30588] Missing documentation for codecs.escape_decode

2017-06-07 Thread Matthieu Dartiailh
Matthieu Dartiailh added the comment: The issue is that unicode_escape will not properly handle strings mixing unicode character and escaped character as it assumes latin-1 compatible characters only. For example, given the literal string 'Δ\nΔ', one cannot encode using latin-1 and e

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-20 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh: The computation of the stack_effect of the CALL_FUNCTION_EX does not reflect the use of the argument to the opcode. Currently stack_effect expect two flags (one on 0x01 and one on 0x02) corresponding to whether positional arguments and keyword arguments

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-20 Thread Matthieu Dartiailh
Changes by Matthieu Dartiailh : -- pull_requests: +168 ___ Python tracker <http://bugs.python.org/issue29607> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29607] Broken stack_effect for CALL_FUNCTION_EX

2017-02-21 Thread Matthieu Dartiailh
Matthieu Dartiailh added the comment: I added the Misc/NEWS entry under Python 3.7. I guess it will be backported to 3.6 when cherry-pinking. -- ___ Python tracker <http://bugs.python.org/issue29

[issue28810] Document bytecode changes in 3.6

2017-02-21 Thread Matthieu Dartiailh
Matthieu Dartiailh added the comment: Anyone to review this. Working on bytecode manipulation for different projects I wish I had known this existed before. -- nosy: +mdartiailh ___ Python tracker <http://bugs.python.org/issue28