Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
* | gh-112983: Add the known magic value of 3495 for Python 3.11 bytecode (#112985) | wim glenn | 2023-12-11 | |
| | | | Add the known magic value of 3495 for Python 3.11 bytecode | |||
* | gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package ↵ | Alex Waygood | 2023-11-27 | |
| | | | | imported with a custom loader (#112425) | |||
* | gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵ | Irit Katriel | 2023-11-03 | |
| | | | | frame state (#111648) | |||
* | gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵ | Irit Katriel | 2023-11-02 | |
| | | | | (#111459) | |||
* | Fix a misspelling of Interpeter -> Interpreter (GH-111040) | Nikita Sobolev | 2023-10-18 | |
| | ||||
* | GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300) | Brandt Bucher | 2023-09-13 | |
| | ||||
* | gh-109256: allocate opcode IDs for internal opcodes in their own range (#109269) | Irit Katriel | 2023-09-12 | |
| | ||||
* | gh-109039: Branch prediction for Tier 2 interpreter (#109038) | Guido van Rossum | 2023-09-11 | |
| | | | | | | | | | | | This adds a 16-bit inline cache entry to the conditional branch instructions POP_JUMP_IF_{FALSE,TRUE,NONE,NOT_NONE} and their instrumented variants, which is used to keep track of the branch direction. Each time we encounter these instructions we shift the cache entry left by one and set the bottom bit to whether we jumped. Then when it's time to translate such a branch to Tier 2 uops, we use the bit count from the cache entry to decided whether to continue translating the "didn't jump" branch or the "jumped" branch. The counter is initialized to a pattern of alternating ones and zeros to avoid bias. The .pyc file magic number is updated. There's a new test, some fixes for existing tests, and a few miscellaneous cleanups. | |||
* | GH-108614: Increase importlib MAGIC for RESUME_CHECK instruction (#109247) | Victor Stinner | 2023-09-11 | |
| | ||||
* | GH-106176, GH-104702: Fix reference leak when importing across multiple ↵ | Brett Cannon | 2023-08-29 | |
| | | | | threads (#108497) | |||
* | gh-105481: generate op IDs from bytecode.c instead of hard coding them in ↵ | Irit Katriel | 2023-08-16 | |
| | | | | opcode.py (#107971) | |||
* | GH-105848: Simplify the arrangement of CALL's stack (GH-107788) | Brandt Bucher | 2023-08-09 | |
| | ||||
* | gh-106531: Remove importlib.resources._legacy (#106532) | Jason R. Coombs | 2023-07-14 | |
| | | | | | | | * gh-106531: Remove importlib.resources._legacy Syncs with importlib_resources 6.0. * Remove documentation for removed functionality. | |||
* | GH-106008: Make implicit boolean conversions explicit (GH-106003) | Brandt Bucher | 2023-06-29 | |
| | ||||
* | gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059) | hms | 2023-06-29 | |
| | | | | | | This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction. | |||
* | gh-105481: generate _specializations and _specialized_instructions from ↵ | Irit Katriel | 2023-06-19 | |
| | | | | bytecodes.c (#105913) | |||
* | GH-77273: Better bytecodes for f-strings (GH-6132) | Mark Shannon | 2023-06-14 | |
| | ||||
* | Fix magic number (GH-105722) | Mark Shannon | 2023-06-13 | |
| | ||||
* | GH-105678: Split MAKE_FUNCTION into MAKE_FUNCTION and SET_FUNCTION_ATTRIBUTE ↵ | Mark Shannon | 2023-06-13 | |
| | | | | (GH-105680) | |||
* | gh-104310: Rename the New Function in importlib.util (gh-105255) | Eric Snow | 2023-06-08 | |
| | | | | | | | | | | | The original name wasn't as clear as it could have been. This change includes the following: * rename the function * change the default value for "disable_check" to False * add clues to the docstring that folks should probably not use the function --------- Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> | |||
* | gh-105407: Remove unused imports in the stdlib (#105411) | Victor Stinner | 2023-06-06 | |
| | ||||
* | GH-105229: Replace some superinstructions with single instruction ↵ | Mark Shannon | 2023-06-05 | |
| | | | | equivalent. (GH-105230) | |||
* | GH-104584: Plugin optimizer API (GH-105100) | Mark Shannon | 2023-06-02 | |
| | ||||
* | gh-103763: Implement PEP 695 (#103764) | Jelle Zijlstra | 2023-05-15 | |
| | | | | | | | | | | | | | | This implements PEP 695, Type Parameter Syntax. It adds support for: - Generic functions (def func[T](): ...) - Generic classes (class X[T](): ...) - Type aliases (type X = ...) - New scoping when the new syntax is used within a class body - Compiler and interpreter changes to support the new syntax and scoping rules Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Eric Traut <eric@traut.com> Co-authored-by: Larry Hastings <larry@hastings.org> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | |||
* | gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270) | Carl Meyer | 2023-05-11 | |
| | ||||
* | gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441) | Carl Meyer | 2023-05-09 | |
| | | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | |||
* | gh-104310: Add importlib.util.allowing_all_extensions() (gh-104311) | Eric Snow | 2023-05-08 | |
| | | | (I'll be adding docs for this separately.) | |||
* | gh-98040: Remove find_loader, find_module and other deprecated APIs (#98059) | Barry Warsaw | 2023-05-03 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove deprecated classes from pkgutil * Remove some other PEP 302 obsolescence * Use find_spec instead of load_module * Remove more tests of PEP 302 obsolete APIs * Remove another bunch of tests using obsolete load_modules() * Remove deleted names from __all__ * Remove obsolete footnote * imp is removed * Remove `imp` from generated stdlib names * What's new and blurb * Update zipimport documentation for the removed methods * Fix some Windows tests * Remove any test (or part of a test) that references `find_module()`. * Use assertIsNone() / assertIsNotNone() consistently. * Update Doc/reference/import.rst * We don't need pkgutil._get_spec() any more either * test.test_importlib.fixtures.NullFinder * ...BadLoaderFinder.find_module * ...test_api.InvalidatingNullFinder.find_module * ...test.test_zipimport test of z.find_module * Suppress cross-references to find_loader and find_module * Suppress cross-references to Finder * Suppress cross-references to pkgutil.ImpImporter and pkgutil.ImpLoader --------- Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> | |||
* | gh-87729: specialize LOAD_SUPER_ATTR_METHOD (#103809) | Carl Meyer | 2023-04-25 | |
| | ||||
* | gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497) | Carl Meyer | 2023-04-24 | |
| | | | | | This speeds up `super()` (by around 85%, for a simple one-level `super().meth()` microbenchmark) by avoiding allocation of a new single-use `super()` object on each use. | |||
* | gh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. ↵ | Jason R. Coombs | 2023-04-22 | |
| | | | | (#103681) | |||
* | Sync with importlib_metadata 6.5 (GH-103584) | Jason R. Coombs | 2023-04-20 | |
| | ||||
* | Remove double space in import error message (#103458) | Ned Batchelder | 2023-04-14 | |
| | ||||
* | GH-103082: Implementation of PEP 669: Low Impact Monitoring for CPython ↵ | Mark Shannon | 2023-04-12 | |
| | | | | | | | | | | (GH-103083) * The majority of the monitoring code is in instrumentation.c * The new instrumentation bytecodes are in bytecodes.c * legacy_tracing.c adapts the new API to the old sys.setrace and sys.setprofile APIs | |||
* | GH-102700: allow built-in modules to be submodules (GH-103162) | Brett Cannon | 2023-04-06 | |
| | ||||
* | GH-88691: Shrink the CALL caches (GH-103230) | Brandt Bucher | 2023-04-05 | |
| | ||||
* | GH-89987: Shrink the BINARY_SUBSCR caches (GH-103022) | Brandt Bucher | 2023-03-29 | |
| | ||||
* | GH-100982: Break up COMPARE_AND_BRANCH (GH-102801) | Brandt Bucher | 2023-03-23 | |
| | ||||
* | gh-102859: Remove JUMP_IF_FALSE_OR_POP and JUMP_IF_TRUE_OR_POP (#102870) | Irit Katriel | 2023-03-22 | |
| | ||||
* | GH-90997: Shrink the LOAD_GLOBAL caches (#102569) | Brandt Bucher | 2023-03-10 | |
| | ||||
* | gh-102515: Remove unused imports in the `Lib/` directory (#102516) | Alex Waygood | 2023-03-08 | |
| | ||||
* | gh-97930: Apply changes from importlib_resources 5.12. (GH-102010) | Jason R. Coombs | 2023-02-18 | |
| | ||||
* | gh-101766: Fix refleak for _BlockingOnManager resources from test suite ↵ | Dong-hee Na | 2023-02-18 | |
| | | | | level (gh-101988) | |||
* | gh-101766: Fix refleak for _BlockingOnManager resources (gh-101942) | Dong-hee Na | 2023-02-17 | |
| | ||||
* | gh-101799: implement PREP_RERAISE_STAR as an intrinsic function (#101800) | Irit Katriel | 2023-02-14 | |
| | ||||
* | GH-87849: Simplify stack effect of SEND and specialize it for generators and ↵ | Mark Shannon | 2023-02-13 | |
| | | | | coroutines. (GH-101788) | |||
* | gh-101632: Add the new RETURN_CONST opcode (#101633) | penguin_wwy | 2023-02-07 | |
| | ||||
* | Fix incorrect versions in magic number comments (GH-101301) | Brandt Bucher | 2023-01-25 | |
| | ||||
* | GH-100762: Don't call `gen.throw()` in `gen.close()`, unless necessary. ↵ | Mark Shannon | 2023-01-24 | |
| | | | | | | (GH-101013) * Store exception stack depth in YIELD_VALUE's oparg and use it avoid expensive gen.throw() in gen.close() where possible. | |||
* | gh-91351: Fix some bugs in importlib handling of re-entrant imports (GH-94504) | Jean-Paul Calderone | 2023-01-20 | |
| | | | Co-authored-by: Brett Cannon <brett@python.org> |