summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-98831: "Generate" the interpreter (#98830)Guido van Rossum2022-11-0313-3851/+8961
| | | | | | | | | | | The switch cases (really TARGET(opcode) macros) have been moved from ceval.c to generated_cases.c.h. That file is generated from instruction definitions in bytecodes.c (which impersonates a C file so the C code it contains can be edited without custom support in e.g. VS Code). The code generator lives in Tools/cases_generator (it has a README.md explaining how it works). The DSL used to describe the instructions is a work in progress, described in https://github.com/faster-cpython/ideas/blob/main/3.12/interpreter_definition.md. This is surely a work-in-progress. An easy next step could be auto-generating super-instructions. **IMPORTANT: Merge Conflicts** If you get a merge conflict for instruction implementations in ceval.c, your best bet is to port your changes to bytecodes.c. That file looks almost the same as the original cases, except instead of `TARGET(NAME)` it uses `inst(NAME)`, and the trailing `DISPATCH()` call is omitted (the code generator adds it automatically).
* gh-98999: Raise `ValueError` in `_pyio` on closed buffers (gh-99009)Nikita Sobolev2022-11-033-12/+33
|
* Docs: Add 'as, match statement' to the index (#99001)Hugo van Kemenade2022-11-031-0/+1
|
* gh-98512: Add more tests for `ValuesView` (#98515)Nikita Sobolev2022-11-032-0/+6
|
* argparse howto: Use f-string in preference to "...".format() (#98883)Skip Montanaro2022-11-031-2/+2
|
* gh-96997: Clarify the contract of PyMem_SetAllocator() (#98977)Pablo Galindo Salgado2022-11-021-0/+21
|
* GH-90699: Remove `_Py_IDENTIFIER` usage from `_elementtree` module (GH-99012)Kumar Aditya2022-11-021-25/+59
|
* gh-98393: Update test_os for bytes-like types (#98487)Victor Stinner2022-11-021-34/+12
| | | Address Serhiy Storchaka's review.
* gh-97731: Specify the full path to the docs for `make docclean` (GH-98982)Brett Cannon2022-11-022-1/+3
| | | | Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds.
* gh-98415: Fix uuid.getnode() ifconfig implementation (#98423)Chaim Sanders2022-11-022-2/+8
| | | | | | | | | The uuid.getnode() function has multiple implementations, tested sequentially. The ifconfig implementation was incorrect and always failed: fix it. In practice, functions of libuuid library are preferred, if available: uuid_generate_time_safe(), uuid_create() or uuid_generate_time(). Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* gh-98790: When DLLs directory is missing on Windows, assume executable_dir ↵Steve Dower2022-11-024-20/+53
| | | | contains PYD files instead (GH-98936)
* gh-99016: Make build scripts compatible with Python 3.8 (GH-99017)Serhiy Storchaka2022-11-023-3/+4
|
* GH-98686: Quicken everything (GH-98687)Brandt Bucher2022-11-0221-239/+144
|
* GH-90699: Remove `_Py_IDENTIFIER` usage from `_asyncio` module (#99010)Kumar Aditya2022-11-023-69/+166
|
* gh-98989: configure: add 3.11 to list of Pythons (#98988)Jelle Zijlstra2022-11-023-2/+3
| | | | | Closes #98989 Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-90699: Remove `_Py_IDENTIFIER` usage from `_json` module (GH-98956)Kumar Aditya2022-11-023-29/+46
|
* gh-87092: remove unused SET_LOC/UNSET_LOC macros (GH-98914)Irit Katriel2022-11-021-73/+6
|
* GH-90699: Remove `_Py_IDENTIFIER` usage from `_curses` module (GH-98957)Kumar Aditya2022-11-021-12/+6
|
* gh-87092: do not allocate PyFutureFeatures dynamically (GH-98913)Irit Katriel2022-11-024-32/+22
|
* gh-98903: Test suite fails with exit code 4 if no tests ran (#98904)Victor Stinner2022-11-023-26/+52
| | | | | | | The Python test suite now fails wit exit code 4 if no tests ran. It should help detecting typos in test names and test methods. * Add "EXITCODE_" constants to Lib/test/libregrtest/main.py. * Fix a typo: "NO TEST RUN" becomes "NO TESTS RAN"
* gh-96265: Formatting changes for faq/programming (#98242)Stanley2022-11-021-39/+48
| | | | | | | | | | | | | | | | | * Formatting changes for faq/programming * Add missing method formatting, use non-literal formatting * Fix sphinx warnings * Some extra formatting missed earlier * More formatting suggestions from review Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Add missing colon, avoid referening external module Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-92679: Clarify asyncio.loop.start_tls parameters (#92682)Oleg Iarygin2022-11-021-3/+8
|
* gh-92871: Postpone the removal of typing.{io,re} to 3.13 (#98958)Sebastian Rittau2022-11-021-3/+3
|
* [doc] Update cookbook example for socket-based logging in a production ↵Vinay Sajip2022-11-011-7/+65
| | | | | sett… (GH-98922) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-98925: Lower marshal recursion depth for WASI (GH-98938)Brett Cannon2022-11-014-0/+7
| | | | | For wasmtime 2.0, the stack depth cost is 6% higher. This causes the default max `marshal` recursion depth to blow the stack. As the default marshal depth is 2000 and Windows is set to 1000, split the difference and choose 1500 for WASI to be safe.
* gh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)Zachary Ware2022-11-013-2/+4
|
* Doc: use "unnumbered" footnotes (#98954)Manuel Kaufmann2022-11-011-2/+2
| | | | | Use unnumbered footnote in this file to avoid reseting the footnotes numbering. Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1.
* gh-98931: Improve error message when the user types 'import x from y' ↵Pablo Galindo Salgado2022-11-015-392/+503
| | | | instead of 'from y import x' (#98932)
* gh-98852: Fix subscription of type aliases (GH-98920)Serhiy Storchaka2022-11-014-0/+43
| | | | | Fix subscription of type aliases containing bare generic types or types like TypeVar: for example tuple[A, T][int] and tuple[TypeVar, T][int], where A is a generic type, and T is a type variable.
* GH-98766: Modest speed-up from ChainMap.__iter__ (GH-98946)Raymond Hettinger2022-11-011-2/+2
|
* gh-98658: Add __class_getitem__ to array.array (#98661)Jelle Zijlstra2022-11-014-2/+12
| | | Closes #98658
* Rename JUMP_TO_INSTRUCTION to GO_TO_INSTRUCTION (#98934)Guido van Rossum2022-11-011-14/+14
| | | | | | This reduces confusion between jumps at the bytecode level (e.g. JUMPTO(), JUMPBY(), and various JUMP_*() opcodes) and jumps in the C code (which are 'goto' statements).
* Fix wording in Functional Programming HOWTO (GH-98939)partev2022-11-011-1/+1
|
* Missing PS1 prompt in tutorial example (GH-98921)Manuel Kaufmann2022-11-011-2/+3
|
* GH-98897: fix memory leak if `math.dist` raises exception (GH-98898)Kumar Aditya2022-11-013-3/+9
|
* gh-98692: Enable treating shebang lines as executables in py.exe launcher ↵Steve Dower2022-10-314-4/+124
| | | | (GH-98732)
* gh-98610: Adjust the Optional Restrictions on Subinterpreters (GH-98618)Eric Snow2022-10-3115-47/+220
| | | | | | | Previously, the optional restrictions on subinterpreters were: disallow fork, subprocess, and threads. By default, we were disallowing all three for "isolated" interpreters. We always allowed all three for the main interpreter and those created through the legacy `Py_NewInterpreter()` API. Those settings were a bit conservative, so here we've adjusted the optional restrictions to: fork, exec, threads, and daemon threads. The default for "isolated" interpreters disables fork, exec, and daemon threads. Regular threads are allowed by default. We continue always allowing everything For the main interpreter and the legacy API. In the code, we add `_PyInterpreterConfig.allow_exec` and `_PyInterpreterConfig.allow_daemon_threads`. We also add `Py_RTFLAGS_DAEMON_THREADS` and `Py_RTFLAGS_EXEC`.
* Fix typo in sorting HOWTO (#98888)partev2022-10-311-1/+1
|
* Doc: Fix sphinx-lint issues (GH-98911)Julien Palard2022-10-311-1/+1
| | | They were introduced right between GH-98441 and GH-98408.
* gh-98576: Fix types in dataclass.InitVar example (gh-98577)Shantanu2022-10-311-2/+2
|
* gh-98410: move getbufferproc and releasebufferproc to buffer.h (#31158)David Hewitt2022-10-315-4/+10
| | | This adds them to the Limited API.
* gh-98878: Use builtins from the bound frame when offering a suggestion (#98880)Batuhan Taskaya2022-10-313-1/+12
|
* gh-98811: use full source location to simplify __future__ imports error ↵Irit Katriel2022-10-315-69/+71
| | | | checking. This also fixes an incorrect error offset. (GH-98812)
* gh-96151: Use a private name for passing builtins to dataclass. This now ↵Shantanu2022-10-313-5/+13
| | | | allows for a field named BUILTIN (gh-98143)
* gh-98879: Remove unreachable error case from COMPARE_OP_STR_JUMP (GH-98882)Dennis Sweeney2022-10-301-3/+0
| | | Thanks to PEP 623 changes, the comparison cannot fail.
* gh-97966: Update uname docs to clarify the special nature of the platform ↵Jason R. Coombs2022-10-302-4/+10
| | | | attribute and to indicate when it became late-bound. (#97972)
* gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212)Nick Coghlan2022-10-305-19/+57
| | | | | | | | | | | * As most of `test_embed` now uses `Py_InitializeFromConfig`, add a specific test case to cover `Py_Initialize` (and `Py_InitializeEx`) * Rename `_testembed` init helper to clarify the API used * Add a `PyConfig_Clear` call in `Py_InitializeEx` to make the code more obviously correct (it already didn't leak as none of the dynamically allocated config fields were being populated, but it's clearer if the wrappers follow the documented API usage guidelines)
* gh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` ↵Nikita Sobolev2022-10-305-3/+36
| | | | (#98806)
* gh-98793: Fix typecheck in `overlapped.c` (#98835)Charlie Zhao2022-10-304-5/+25
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* glossary.rst: Fix typo in package definition (GH-98865)ab2022-10-291-1/+1
| | | | | | This is a tiny typo fix of package definition in glossary. According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly. Automerge-Triggered-By: GH:AlexWaygood