Matthias Bussonnier
bd46174a5a
bpo-41218: Only mark async code with CO_COROUTINE. ( #21357 )
...
3.8.3 had a regression where compiling with
ast.PyCF_ALLOW_TOP_LEVEL_AWAIT woudl agressively mark things are
coroutine even if there were not.
2020-07-06 23:26:52 +02:00
Pablo Galindo
60eb9f1ab5
bpo-39151: Simplify DFS in the assembler (GH-17733)
2020-06-28 01:55:47 +01:00
Pablo Galindo
1ed83adb0e
bpo-40939: Remove the old parser (GH-20768)
...
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.
2020-06-11 17:30:46 +01:00
Mark Shannon
db64f12e4d
Make sure that keyword arguments are merged into the arguments dictionary when dict unpacking and keyword arguments are interleaved. (GH-20553)
2020-06-01 10:42:42 +01:00
Pablo Galindo
ee40e4b856
bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)
2020-04-23 03:43:08 +01:00
Pablo Galindo
c5fc156852
bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)
...
Co-authored-by: Guido van Rossum <guido@python.org >
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com >
2020-04-22 23:29:27 +01:00
Victor Stinner
da7933ecc3
bpo-40268: Add _PyInterpreterState_GetConfig() (GH-19492)
...
Don't access PyInterpreterState.config member directly anymore, but
use new functions:
* _PyInterpreterState_GetConfig()
* _PyInterpreterState_SetConfig()
* _Py_GetConfig()
2020-04-13 03:04:28 +02:00
Zackery Spytz
08050e959e
bpo-40147: Fix a compiler warning on Windows in Python/compile.c (GH-19389)
...
Change the type of nkeywords to Py_ssize_t.
2020-04-06 07:47:47 +01:00
Pablo Galindo
254ec78341
bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)
2020-04-03 20:37:13 +01:00
Furkan Önder
cb6534e1a8
bpo-40067: Improve error messages for multiple star expressions in assignments (GH-19168)
...
Co-Authored-By: Batuhan Taşkaya <isidentical@gmail.com >
Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com >
2020-03-26 01:54:31 +00:00
Victor Stinner
87d3b9db4a
bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)
2020-03-25 19:27:36 +01:00
Andy Lester
7668a8bc93
Use calloc-based functions, not malloc. (GH-19152)
2020-03-24 23:26:44 -05:00
Batuhan Taşkaya
9052f7a41b
bpo-39562: Allow executing asynchronous comprehensions in the asyncio REPL (GH-18968)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com >
2020-03-19 11:35:44 +00:00
Pablo Galindo
d112c600ab
bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is used (GH-17866)
...
Do not apply AST-based optimizations if 'from __future__ import annotations' is used in order to
prevent information lost in the final version of the annotations.
2020-03-18 23:02:09 +00:00
Serhiy Storchaka
6b97598fb6
bpo-39988: Remove ast.AugLoad and ast.AugStore node classes. (GH-19038)
2020-03-17 23:41:08 +02:00
Serhiy Storchaka
61cb3d02b8
bpo-39987: Simplify setting lineno in the compiler. (GH-19037)
2020-03-17 18:07:30 +02:00
Batuhan Taşkaya
8689209e03
bpo-39969: Remove ast.Param node class as is no longer used (GH-19020)
2020-03-15 19:32:17 +00:00
Pablo Galindo
90235810ec
bpo-39965: Correctly raise SyntaxError if await is used outside async functions when PyCF_ALLOW_TOP_LEVEL_AWAIT is set (GH-19010)
2020-03-15 04:29:22 +00:00
Andy Lester
76d5877b72
closes bpo-39922: Remove unused args from four functions. (GH-18893)
2020-03-10 19:18:12 -07:00
Serhiy Storchaka
13d52c2686
bpo-34822: Simplify AST for subscription. (GH-9605)
...
* Remove the slice type.
* Make Slice a kind of the expr type instead of the slice type.
* Replace ExtSlice(slices) with Tuple(slices, Load()).
* Replace Index(value) with a value itself.
All non-terminal nodes in AST for expressions are now of the expr type.
2020-03-10 18:52:34 +02:00
Brandt Bucher
d5aa2e941c
bpo-39890: Don't mutate the AST when compiling starred assignments (GH-18833)
2020-03-08 03:44:18 +00:00
Batuhan Taşkaya
d82e469048
bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)
...
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...).
Co-Authored-By: Victor Stinner <vstinner@python.org >
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com >
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com >
2020-03-04 16:16:46 +00:00
Serhiy Storchaka
8c579b1cc8
bpo-32856: Optimize the assignment idiom in comprehensions. (GH-16814)
...
Now `for y in [expr]` in comprehensions is as fast as a simple
assignment `y = expr`.
2020-02-12 12:18:59 +02:00
Victor Stinner
a102ed7d2f
bpo-39573: Use Py_TYPE() macro in Python and Include directories (GH-18391)
...
Replace direct access to PyObject.ob_type with Py_TYPE().
2020-02-07 02:24:48 +01:00
Mark Shannon
8a4cd700a7
bpo-39320: Handle unpacking of **values in compiler (GH-18141)
...
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking.
* Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused.
* Update magic number for ** unpacking opcodes.
* Update dis.rst to incorporate new bytecodes.
* Add blurb entry.
2020-01-27 09:57:45 +00:00