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
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
Change by Matthieu Dartiailh :
--
pull_requests: +30391
pull_request: https://github.com/python/cpython/pull/32334
___
Python tracker
<https://bugs.python.org/issue47
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 &
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
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
Change by Matthieu Dartiailh :
--
resolution: -> fixed
___
Python tracker
<https://bugs.python.org/issue41191>
___
___
Python-bugs-list mailing list
Un
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:
-
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'
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
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
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
Changes by Matthieu Dartiailh :
--
pull_requests: +168
___
Python tracker
<http://bugs.python.org/issue29607>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
15 matches
Mail list logo