Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-77782: Deprecate global configuration variable (#93943) | Victor Stinner | 2022-06-17 | 2 | -0/+24 | |
| | | | | | | | Deprecate global configuration variable like Py_IgnoreEnvironmentFlag: the Py_InitializeFromConfig() API should be instead. Fix declaration of Py_GETENV(): use PyAPI_FUNC(), not PyAPI_DATA(). | |||||
* | gh-74953: Fix PyThread_acquire_lock_timed() code recomputing the timeout ↵ | Victor Stinner | 2022-06-17 | 1 | -1/+1 | |
| | | | | | (#93941) Set timeout, don't create a local variable with the same name. | |||||
* | gh-74953: Add _PyTime_FromMicrosecondsClamp() function (#93942) | Victor Stinner | 2022-06-17 | 2 | -16/+17 | |
| | ||||||
* | gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916) | Victor Stinner | 2022-06-17 | 4 | -14/+17 | |
| | ||||||
* | gh-91985: Ensure in-tree builds override platstdlib_dir in every path ↵ | neonene | 2022-06-16 | 1 | -1/+22 | |
| | | | | calculation (GH-93641) | |||||
* | Fix BINARY_SUBSCR_GETITEM stats (GH-93903) | Ken Jin | 2022-06-16 | 2 | -7/+7 | |
| | ||||||
* | Rename 'LOAD_METHOD' specialization stat consts to 'ATTR'. (GH-93812) | Mark Shannon | 2022-06-14 | 1 | -17/+14 | |
| | ||||||
* | Remove LOAD_METHOD stats. (GH-93807) | Mark Shannon | 2022-06-14 | 1 | -1/+0 | |
| | ||||||
* | GH-93678: reduce boilerplate and code repetition in the compiler (GH-93682) | Irit Katriel | 2022-06-14 | 1 | -261/+150 | |
| | ||||||
* | GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430) | Ken Jin | 2022-06-14 | 4 | -243/+194 | |
| | ||||||
* | GH-93516: Store offset of first traceable instruction in code object (GH-93769) | Mark Shannon | 2022-06-14 | 1 | -52/+37 | |
| | ||||||
* | GH-93662: Make sure that column offsets are correct in multi-line method ↵ | Mark Shannon | 2022-06-14 | 1 | -4/+16 | |
| | | | | calls. (GH-93673) | |||||
* | gh-93741: Add private C API _PyImport_GetModuleAttrString() (GH-93742) | Serhiy Storchaka | 2022-06-14 | 2 | -29/+45 | |
| | | | | | | It combines PyImport_ImportModule() and PyObject_GetAttrString() and saves 4-6 lines of code on every use. Add also _PyImport_GetModuleAttr() which takes Python strings as arguments. | |||||
* | Add more FOR_ITER specialization stats (GH-32151) | Dennis Sweeney | 2022-06-13 | 1 | -2/+26 | |
| | ||||||
* | GH-93621: reorder code in with/async-with exception exit path to reduce the ↵ | Irit Katriel | 2022-06-10 | 1 | -7/+13 | |
| | | | | size of the exception table (GH-93622) | |||||
* | Fix MSVC compiler warnings in ceval.c (#93569) | Ken Jin | 2022-06-07 | 1 | -2/+2 | |
| | ||||||
* | Shrink the LOAD_METHOD cache by one codeunit. (#93537) | Mark Shannon | 2022-06-07 | 2 | -13/+7 | |
| | ||||||
* | GH-93444: remove redundant fields from basicblock: b_nofallthrough, b_exit, ↵ | Irit Katriel | 2022-06-03 | 1 | -78/+74 | |
| | | | | b_return (GH-93445) | |||||
* | gh-93356: Lay out exception handling code at end of code unit (GH-92769) | Irit Katriel | 2022-06-02 | 1 | -42/+220 | |
| | ||||||
* | gh-92597: Improve error message for AST nodes with invalid ranges (GH-93398) | Pablo Galindo Salgado | 2022-06-01 | 1 | -3/+3 | |
| | ||||||
* | gh-90300: split --help output into separate options (#30331) | Éric | 2022-06-01 | 2 | -65/+123 | |
| | | | | | | Make --help output shorter and add new help options. --help-env, --help-xoptions and --help-all command-line options are added to complement --help. | |||||
* | gh-92597: Ensure that AST nodes without explicit end positions can be ↵ | Pablo Galindo Salgado | 2022-05-31 | 1 | -12/+12 | |
| | | | | compiled (GH-93359) | |||||
* | gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler ↵ | Dennis Sweeney | 2022-05-31 | 3 | -24/+130 | |
| | | | | (GH-93144) | |||||
* | GH-93354: Use exponential backoff to avoid excessive specialization ↵ | Mark Shannon | 2022-05-31 | 2 | -43/+46 | |
| | | | | attempts. (GH-93355) | |||||
* | gh-93351: Ensure the position information in AST nodes created by the parser ↵ | Pablo Galindo Salgado | 2022-05-30 | 1 | -0/+26 | |
| | | | | is always consistent (GH-93352) | |||||
* | gh-93008: refactor compiler functions that add instructions to take only a ↵ | Irit Katriel | 2022-05-29 | 1 | -60/+61 | |
| | | | | basicblock* (not the whole compiler) (GH-93009) | |||||
* | bpo-40514: Drop EXPERIMENTAL_ISOLATED_SUBINTERPRETERS (gh-93185) | Eric Snow | 2022-05-27 | 5 | -102/+0 | |
| | | | | | | | This was added for bpo-40514 (gh-84694) to test out a per-interpreter GIL. However, it has since proven unnecessary to keep the experiment in the repo. (It can be done as a branch in a fork like normal.) So here we are removing: * the configure option * the macro * the code enabled by the macro | |||||
* | GH-90230: Add stats to breakdown the origin of calls to `PyEval_EvalFrame` ↵ | Mark Shannon | 2022-05-27 | 3 | -2/+9 | |
| | | | | (GH-93284) | |||||
* | GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215) | Kumar Aditya | 2022-05-27 | 7 | -64/+0 | |
| | ||||||
* | gh-93223: More aggressive Jump-To-Jump elimination (GH-93229) | Dennis Sweeney | 2022-05-27 | 1 | -1/+1 | |
| | ||||||
* | gh-93217: fix some issues in man page and --help (#93219) | Éric | 2022-05-26 | 1 | -5/+4 | |
| | ||||||
* | gh-92777: Add LOAD_METHOD_LAZY_DICT (GH-92778) | Ken Jin | 2022-05-25 | 3 | -18/+50 | |
| | ||||||
* | gh-91924: Fix __lltrace__ for non-UTF-8 stdout encoding (#93199) | Victor Stinner | 2022-05-25 | 1 | -1/+3 | |
| | | | | | | | | Fix __lltrace__ debug feature if the stdout encoding is not UTF-8. If the stdout encoding is not UTF-8, the first call to lltrace_resume_frame() indirectly sets lltrace to 0 when calling unicode_check_encoding_errors() which calls encodings.search_function(). | |||||
* | gh-93103: Py_DecodeLocale() uses _PyRuntime.preconfig (#93187) | Victor Stinner | 2022-05-24 | 2 | -22/+14 | |
| | | | | | | | | | | The Py_DecodeLocale() and Py_EncodeLocale() now use _PyRuntime.preconfig, rather than Py_UTF8Mode and Py_LegacyWindowsFSEncodingFlag global configuration varibles, to decide if the UTF-8 encoding is used or not. As documented, these functions must not be called before Python is preinitialized. The new PyConfig API should now be used, rather than using deprecated functions like Py_SetPath() or PySys_SetArgv(). | |||||
* | gh-93103: Parser uses PyConfig.parser_debug instead of Py_DebugFlag (#93106) | Victor Stinner | 2022-05-24 | 1 | -1/+1 | |
| | | | | | | | * Replace deprecated Py_DebugFlag with PyConfig.parser_debug in the parser. * Add Parser.debug member. * Add tok_state.debug member. * Py_FrozenMain(): Replace Py_VerboseFlag with PyConfig.verbose. | |||||
* | gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) | Yury Selivanov | 2022-05-23 | 1 | -3/+11 | |
| | | | | | | | Also while there, clarify a few things about why we reduce the hash to 32 bits. Co-authored-by: Eli Libman <eli@hyro.ai> Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> | |||||
* | gh-93061: Mark as artificial: backwards jump after async for (GH-93062) | Dennis Sweeney | 2022-05-23 | 1 | -0/+2 | |
| | ||||||
* | GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack ↵ | Mark Shannon | 2022-05-19 | 3 | -9/+13 | |
| | | | | depth. (GH-92960) | |||||
* | GH-90690: Remove `PRECALL` instruction (GH-92925) | Mark Shannon | 2022-05-19 | 4 | -309/+211 | |
| | ||||||
* | Split refcount stats into 'interpreter' and 'non-interpreter' (GH-92919) | Mark Shannon | 2022-05-18 | 3 | -0/+6 | |
| | ||||||
* | bpo-42047: Add native thread ID for DragonFlyBSD (#22714) | David CARLIER | 2022-05-18 | 1 | -0/+5 | |
| | | | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> | |||||
* | gh-92782: unify the style of CFG traversal algorithms in the compiler (GH-92784) | Irit Katriel | 2022-05-17 | 1 | -38/+45 | |
| | ||||||
* | Improve object stats (#92845) | Mark Shannon | 2022-05-16 | 2 | -0/+4 | |
| | | | | | * Add incref/decref stats * Show ratios for allocation in summary | |||||
* | gh-89653: Use int type for Unicode kind (#92704) | Victor Stinner | 2022-05-13 | 1 | -2/+2 | |
| | | | | Use the same type that PyUnicode_FromKindAndData() kind parameter type (public C API): int. | |||||
* | GH-92236: Remove spurious "line" event when starting coroutine or generator. ↵ | Mark Shannon | 2022-05-13 | 1 | -0/+6 | |
| | | | | (GH-92722) | |||||
* | Update outdated `LOAD_METHOD` comments in `Python/ceval.c` (GH-92641) | Crowthebird | 2022-05-12 | 1 | -2/+2 | |
| | ||||||
* | gh-92536: PEP 623: Remove wstr and legacy APIs from Unicode (GH-92537) | Inada Naoki | 2022-05-12 | 4 | -86/+3 | |
| | ||||||
* | gh-92651: Remove the Include/token.h header file (#92652) | Victor Stinner | 2022-05-11 | 1 | -1/+0 | |
| | | | | | | | | | | | | | | | Remove the token.h header file. There was never any public tokenizer C API. The token.h header file was only designed to be used by Python internals. Move Include/token.h to Include/internal/pycore_token.h. Including this header file now requires that the Py_BUILD_CORE macro is defined. It no longer checks for the Py_LIMITED_API macro. Rename functions: * PyToken_OneChar() => _PyToken_OneChar() * PyToken_TwoChars() => _PyToken_TwoChars() * PyToken_ThreeChars() => _PyToken_ThreeChars() | |||||
* | gh-92632: Make function starunpack_helper run faster when encounters starred ↵ | zikcheng | 2022-05-11 | 1 | -0/+1 | |
| | | | | argument. (GH-92655) | |||||
* | gh-92619: Fix bug where the compiler duplicates exit blocks unnecessarily ↵ | Irit Katriel | 2022-05-10 | 1 | -1/+9 | |
| | | | | (GH-92620) |