Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-92123: Convert `_elementtree` types to heap types (#99221) | Erlend E. Aasland | 2023-01-20 | 4 | -236/+185 |
| | |||||
* | GH-90699: Clear interned strings in `_elementtree` (#101185) | Erlend E. Aasland | 2023-01-20 | 1 | -0/+10 |
| | |||||
* | Provided better example for logging cookbook (GH-101164) | Vladimir Malinovskii | 2023-01-20 | 1 | -10/+31 |
| | | | Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> | ||||
* | gh-88324: Clarify documentation for redirected stdout/stderr when using ↵ | richardhob | 2023-01-20 | 3 | -17/+19 |
| | | | | | | | | | | | | subprocess in Linux (#94035) * Update description of stdout, stderr, and stdin. Changes: - Move the ``None`` option (which is default) to the front of the list of input options - Move the ``None`` option description up to make the default behavior more clear (No redirection) - Remove mention of Child File Descriptors from ``None`` option description | ||||
* | gh-101144: Allow open and read_text encoding to be positional. (#101145) | Gregory P. Smith | 2023-01-20 | 4 | -10/+95 |
| | | | | | The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only. Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time. | ||||
* | gh-101100: [Enum] Fix sphinx warnings in docs (GH-101122) | Nikita Sobolev | 2023-01-20 | 1 | -12/+12 |
| | | | | | * gh-101100: [Enum] Fix sphinx warnings in Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | ||||
* | gh-59956: Fix Function Groupings in pystate.c (gh-101172) | Eric Snow | 2023-01-20 | 1 | -237/+352 |
| | | | | | This is a follow-up to gh-101161. The objective is to make it easier to read Python/pystate.c by grouping the functions there in a consistent way. This exclusively involves moving code around and adding various kinds of comments. https://github.com/python/cpython/issues/59956 | ||||
* | gh-101167: fix bug in the new test.support.requires_specialization decorator ↵ | Irit Katriel | 2023-01-19 | 1 | -1/+2 |
| | | | | | | | (GH-101171) Fixes #101167. Automerge-Triggered-By: GH:iritkatriel | ||||
* | gh-101169: reduce the implementation of except* by one bytecode instruction ↵ | Irit Katriel | 2023-01-19 | 1 | -16/+11 |
| | | | | (#101170) | ||||
* | gh-59956: Clarify GILState-related Code (gh-101161) | Eric Snow | 2023-01-19 | 10 | -250/+373 |
| | | | | | | | | | | The objective of this change is to help make the GILState-related code easier to understand. This mostly involves moving code around and some semantically equivalent refactors. However, there are a also a small number of slight changes in structure and behavior: * tstate_current is moved out of _PyRuntimeState.gilstate * autoTSSkey is moved out of _PyRuntimeState.gilstate * autoTSSkey is initialized earlier * autoTSSkey is re-initialized (after fork) earlier https://github.com/python/cpython/issues/59956 | ||||
* | gh-98831: register instructions have 0 pushes and pops (#101163) | Irit Katriel | 2023-01-19 | 1 | -0/+1 |
| | |||||
* | gh-100712: make it possible to disable specialization (for debugging) (#100713) | Irit Katriel | 2023-01-19 | 11 | -3/+87 |
| | |||||
* | gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is ↵ | Stepfen Shawn | 2023-01-18 | 1 | -1/+1 |
| | | | | an immutable string. (#100936) | ||||
* | gh-100340: Allows -Wno-int-conversion for wasm (#100341) | Kushal Das | 2023-01-18 | 4 | -0/+47 |
| | | | Fixes #100340 allows -Wno-int-conversion for wasm | ||||
* | GH-98831: Move assorted macros from ceval.h to a new header (#101116) | Guido van Rossum | 2023-01-18 | 4 | -385/+364 |
| | |||||
* | fix typo in 3.12 What's New (#101105) | Tushar Sadhwani | 2023-01-18 | 1 | -1/+1 |
| | |||||
* | Docs: improve sqlite3 placeholders example (#101092) | Erlend E. Aasland | 2023-01-18 | 1 | -13/+12 |
| | |||||
* | Fix typo and old link in wasm readme (#101096) | Zac Hatfield-Dodds | 2023-01-18 | 1 | -2/+2 |
| | |||||
* | GH-98831: Implement array support in cases generator (#100912) | Guido van Rossum | 2023-01-17 | 6 | -177/+398 |
| | | | | | | | | You can now write things like this: ``` inst(BUILD_STRING, (pieces[oparg] -- str)) { ... } inst(LIST_APPEND, (list, unused[oparg-1], v -- list, unused[oparg-1])) { ... } ``` Note that array output effects are only partially supported (they must be named `unused` or correspond to an input effect). | ||||
* | gh-82052: Don't send partial UTF-8 sequences to the Windows API (GH-101103) | Paul Moore | 2023-01-17 | 2 | -1/+17 |
| | | | Don't send partial UTF-8 sequences to the Windows API | ||||
* | Fix typo in `ReprEnum` documentation (#101079) | Viicos | 2023-01-17 | 1 | -1/+1 |
| | |||||
* | gh-101046: Fix a potential memory leak in the parser when raising ↵ | Pablo Galindo Salgado | 2023-01-16 | 3 | -1/+111 |
| | | | | MemoryError (#101051) | ||||
* | gh-100247: Improve documentation for custom shebang commands in py.exe ↵ | Steve Dower | 2023-01-16 | 1 | -4/+5 |
| | | | | launcher (GH-101083) | ||||
* | gh-100320: Fix path calculations on Windows when python.exe is moved outside ↵ | Steve Dower | 2023-01-16 | 4 | -33/+54 |
| | | | | of the normal location (GH-100947) | ||||
* | GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983) | Mark Shannon | 2023-01-16 | 17 | -239/+267 |
| | |||||
* | gh-101056: Fix memory leak in `formatfloat()` in `bytesobject.c` (#101057) | Nikita Sobolev | 2023-01-16 | 1 | -1/+3 |
| | |||||
* | Docs: Remove duplicate `TraversableResources` reference (#101068) | scrazzz | 2023-01-16 | 1 | -1/+0 |
| | |||||
* | GH-100997: fix refleak in `_testinternalcapi.c` (#101058) | Kumar Aditya | 2023-01-16 | 1 | -0/+1 |
| | |||||
* | gh-101041: Fix a misspelled name of `utctimetuple` in a doc warning (GH-101042) | Oleg Iarygin | 2023-01-15 | 1 | -1/+1 |
| | |||||
* | Fix `ctypes` typo in `set_exception` (#101040) | Cristián Maureira-Fredes | 2023-01-15 | 2 | -3/+3 |
| | |||||
* | GH-100892: consolidate `HEAD_LOCK/HEAD_UNLOCK` macros (#100953) | Kumar Aditya | 2023-01-15 | 4 | -14/+6 |
| | |||||
* | gh-100668: Clarify how sqlite3 maps parameters onto placeholders (#100960) | Erlend E. Aasland | 2023-01-14 | 1 | -9/+17 |
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | ||||
* | gh-94518: [_posixsubprocess] Replace variable validity flags with reserved ↵ | Oleg Iarygin | 2023-01-14 | 2 | -33/+32 |
| | | | | | | | | | | | | | values (#94687) Have _posixsubprocess.c stop using boolean flags to say if gid and uid values were supplied and action is required. Such an implicit "either initialized or look somewhere else" confused both the reader (another mental connection to constantly track between functions) and a compiler (warnings on potentially uninitialized variables being passed). Instead, we can utilize a special group/user id as a flag value -1 defined by POSIX but used nowhere else. Namely: gid: call_setgid = False → gid = -1 uid: call_setuid = False → uid = -1 groups: call_setgroups = False → groups = NULL (obtained with (groups_list != Py_None) ? groups : NULL) This PR is required for #94519. | ||||
* | gh-101021: Document binary parameters as bytes (#101024) | Bob Kline | 2023-01-14 | 4 | -8/+8 |
| | |||||
* | Sync-up parameter name in equivalent code snippet of `enumerate` (GH-101029) | JustAnotherArchivist | 2023-01-14 | 1 | -2/+2 |
| | |||||
* | GH-98831: Identify instructions that don't use oparg (#100957) | Guido van Rossum | 2023-01-14 | 3 | -60/+70 |
| | | | | | | | For these the instr_format field uses IX instead of IB. Register instructions use IX, IB, IBBX, IBBB, etc. Also: Include the closing '}' in Block.tokens, for completeness | ||||
* | Add recipes to showcase tee(), zip*, batched, starmap, and product. (GH-101023) | Raymond Hettinger | 2023-01-14 | 1 | -0/+27 |
| | |||||
* | Fix typo in docs (GH-101025) | Raymond Hettinger | 2023-01-14 | 1 | -1/+1 |
| | |||||
* | gh-74033: Fix bug when Path takes and ignores **kwargs (GH-19632) | Yurii Karabas | 2023-01-14 | 3 | -0/+10 |
| | | | | | Fix a bug where `Path` takes and ignores `**kwargs` by adding to `PurePath` class `__init__` method which can take only positional arguments. Automerge-Triggered-By: GH:brettcannon | ||||
* | GH-100573: Fix server hang caused by os.stat() on named pipe (Windows) (#100959) | Guido van Rossum | 2023-01-13 | 3 | -0/+46 |
| | |||||
* | Don't double count misses. (GH-100984) | Mark Shannon | 2023-01-13 | 1 | -0/+3 |
| | |||||
* | gh-100160: Restore and deprecate implicit creation of an event loop (GH-100410) | Serhiy Storchaka | 2023-01-13 | 8 | -41/+77 |
| | | | | | | | | | | Partially revert changes made in GH-93453. asyncio.DefaultEventLoopPolicy.get_event_loop() now emits a DeprecationWarning and creates and sets a new event loop instead of raising a RuntimeError if there is no current event loop set. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> | ||||
* | gh-100247: Fix py.exe launcher not using entire shebang command for finding ↵ | Steve Dower | 2023-01-13 | 4 | -94/+154 |
| | | | | custom commands (GH-100944) | ||||
* | gh-86682: Adds sys._getframemodulename as an alternative to using _getframe ↵ | Steve Dower | 2023-01-13 | 13 | -14/+200 |
| | | | | | (GH-99520) Also updates calls in collections, doctest, enum, and typing modules to use _getframemodulename first when available. | ||||
* | GH-100942: Fix incorrect cast in property_copy(). (#100965) | Raymond Hettinger | 2023-01-12 | 3 | -1/+22 |
| | |||||
* | GH-100997: Implement Multi-Phase Init for the _testinternalcapi Module ↵ | Eric Snow | 2023-01-12 | 3 | -33/+117 |
| | | | | | | | (gh-100998) _testinternalcapi is an internal module used for testing. https://github.com/python/cpython/issues/100997 | ||||
* | gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and ↵ | Barney Gale | 2023-01-12 | 4 | -46/+55 |
| | | | | | | | splitdrive() (GH-100351) This brings the Python implementation of `ntpath.normpath()` in line with the C implementation added in 99fcf15 Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | gh-96461: Improve docs for bytecode instructions (GH-96462) | Matthieu Dartiailh | 2023-01-12 | 1 | -123/+236 |
| | | | | | | | | | * Clarify the meaning of the oparg for CACHE and COPY opcode in dis doc * Use STACK to describe stack operation in analogy with a Python list * Remove (delta) from BEFORE_WITH since BEFORE_WITH does not take an argument * Fix the description of the stack impact of multiple opcodes | ||||
* | GH-81381: Add longer comment _PyType_AllocNoTrack() (GH-100954) | Neil Schemenauer | 2023-01-12 | 1 | -1/+6 |
| | | | | The details on the "nitems+1" expression is a bit subtle so add a longer comment about it. | ||||
* | Fix typo in `enum` module documentation (#100992) | Noam Cohen | 2023-01-12 | 1 | -1/+1 |
| |