summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'upstream/main'Pablo Galindo2022-02-032-0/+2
|\
| * bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)Terry Jan Reedy2022-02-031-0/+1
| | | | | | | | | | On Windows, one had to Tab or click on the entry box to get a cursor and be able to enter anything.
| * closes bpo-46626: Expose IP_BIND_ADDRESS_NO_PORT socket option. (GH-31106)Benjamin Peterson2022-02-031-0/+1
| |
* | Python 3.11.0a5v3.11.0a5Pablo Galindo2022-02-0396-198/+986
|/
* bpo-46436: Fix command-line option -d/--directory in module http.server ↵Géry Ogam2022-02-031-0/+3
| | | | | | | | (GH-30701) Fix command-line option -d/--directory in http.server main function that was ignored when combined with --cgi. Automerge-Triggered-By: GH:merwok
* bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ↵Miro Hrončok2022-02-031-0/+1
| | | | (GH-31098)
* bpo-45885: Add more stats for COMPARE_OP in specialize.c (GH-31040)Dennis Sweeney2022-02-031-0/+1
|
* bpo-45773: Remove invalid peephole optimizations (GH-31066)Brandt Bucher2022-02-031-0/+1
|
* bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031)Zackery Spytz2022-02-031-0/+3
| | | | | Calling int(a) when type(a) implements __trunc__ but not __int__ or __index__ now raises a DeprecationWarning.
* bpo-46483: Remove `__class_getitem__` from `pathlib.PurePath` (GH-30848)Nikita Sobolev2022-02-032-2/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993)Nikita Sobolev2022-02-031-0/+1
|
* Restrict use of Mock objects as specs (GH-31090)Matthew Suozzo2022-02-031-0/+1
| | | | | Follow-on to https://github.com/python/cpython/pull/25326 This covers cases where mock objects are passed directly to spec.
* bpo-46576: bpo-46524: Disable compiler optimization within ↵Gregory P. Smith2022-02-021-0/+3
| | | | | | | | | | | | | | | | | | | | test_peg_generator. (#31015) Disable compiler optimization within test_peg_generator. This speed up test_peg_generator by always disabling compiler optimizations by using -O0 or equivalent when the test is building its own C extensions. A build not using --with-pydebug in order to speed up test execution winds up with this test taking a very long time as it would do repeated compilation of parser C code using the same optimization flags as CPython was built with. This speeds the test up 6-8x on gps-raspbian. Also incorporate's #31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303
* bpo-46616: Ensures test_importlib.test_windows cleans up registry keys after ↵Steve Dower2022-02-021-0/+2
| | | | completion (GH-31086)
* bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952)Hugo van Kemenade2022-02-021-0/+1
| | | | | | | * Revert "bpo-45173 Remove configparser deprecations" This reverts commit df2284bc416dcccba1125b12af4499c45baabe4f. * bpo-45173: Note these configparser deprecations will be removed in 3.12
* bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696)Petr Viktorin2022-02-021-0/+2
| | | Automerge-Triggered-By: GH:encukou
* bpo-45459: Add Py_buffer to limited API (GH-29991)Christian Heimes2022-02-022-0/+30
| | | | | | | | | | | - [x] ``Py_buffer`` struct - [x] ``PyBuffer_*()`` API functions - [x] ``PyBUF_*`` constants - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots - [x] ``PyMemoryView_FromBuffer()`` API - [x] tests for limited API - [x] ``make regen-limited-abi`` - [x] documentation update - [ ] export ``PyPickleBuffer*()`` API ???
* bpo-43012: remove `pathlib._Accessor` (GH-25701)Barney Gale2022-02-021-0/+2
| | | | | | | | | | | | | | | | Per Pitrou: > The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there. https://discuss.python.org/t/make-pathlib-extensible/3428/2 Accessors are: - Lacking any internal purpose - '_NormalAccessor' is the only implementation - Lacking any firm conceptual difference to `Path` objects themselves (inc. subclasses) - Non-public, i.e. underscore prefixed - '_Accessor' and '_NormalAccessor' - Unofficially used to implement customized `Path` objects, but once once [bpo-24132]() is addressed there will be a supported route for that. This patch preserves all existing behaviour.
* bpo-46414: Add typing.reveal_type (#30646)Jelle Zijlstra2022-02-021-0/+1
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46602: Do not append conftest.c (GH-31062)adanhawth2022-02-021-0/+1
| | | | | | | | The heredoc creation statements use >> to append conftest.c. This can cause tricky build issues if the file is not correctly removed prior to its name being reused (such name is reused several times for different contextual tests during the build). One such result from appending may cause #include <ac_nonexistent.h> to persist when testing to acquire PLATFORM_TRIPLET. This can then lead to downstream issues concerning SOABI.
* bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)Victor Stinner2022-02-021-0/+2
| | | | test_ftplib now silently ignores socket errors to prevent logging unhandled threading exceptions.
* bpo-46591: Make About IDLE doc link label clickable (GH-30251)Wes2022-02-021-0/+1
| | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-14916: use specified tokenizer fd for file input (GH-31006)Paul m. p. P2022-02-011-0/+1
| | | | | | | | | | @pablogsal, sorry i failed to rebase to main, so i recreated https://github.com/python/cpython/pull/22190#issuecomment-1024633392 > PyRun_InteractiveOne\*() functions allow to explicitily set fd instead of stdin. but stdin was hardcoded in readline call. > This patch does not fix target file for prompt unlike original bpo one : prompt fd is unrelated to tokenizer source which could be read only. It is more of a bugfix regarding the docs : actual documentation say "prompt the user" so one would expect prompt to go on stdout not a file for both PyRun_InteractiveOne\*() and PyRun_InteractiveLoop\*(). Automerge-Triggered-By: GH:pablogsal
* bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)Victor Stinner2022-02-011-0/+2
| | | | | | | | Fix test_gdb.test_pycfunction() for Python built with clang -Og. Tolerate inlined functions in the gdb traceback. When _testcapimodule.c is built by clang -Og, _null_to_none() is inlined in meth_varargs() and so gdb returns _null_to_none() as the frame #1. If it's not inlined, meth_varargs() is the frame #1.
* bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol ↵Emiya2022-02-011-0/+1
| | | | | transports (GH-30958) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921)Kumar Aditya2022-02-011-0/+1
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-46600: ./configure --with-pydebug uses -Og with clang (GH-31052)Victor Stinner2022-02-011-0/+3
| | | | Fix the test checking if the C compiler supports -Og option in the ./configure script to also use -Og on clang which supports it.
* bpo-46564: do not create frame object for super object (GH-31002)Kumar Aditya2022-02-011-0/+1
|
* bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)Victor Stinner2022-01-311-0/+2
| | | | | | | | | | | | | | | | | | | | | * bpo-46542: test_lib2to3 uses support.infinite_recursion() Fix a Python crash in test_lib2to3 when using Python built in debug mode: limit the recursion limit. The test_all_project_files() test of test_lib2to3 now uses the test.support.infinite_recursion() context manager when processing the infinite_recursion.py file to prevent a crash when Python is built in debug mode. The two test_all_project_files() tests now use subTest() and log the refactored/parsed filename (if test_lib2to3 is run in verbose mode). * Update Lib/lib2to3/tests/data/infinite_recursion.py Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153)Barney Gale2022-01-281-0/+1
| | | | Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brian Helba <brian.helba@kitware.com>
* bpo-43112: detect musl as a separate SOABI (GH-24502)Natanael Copa2022-01-281-0/+1
| | | | | | | musl libc and gnu libc are not ABI compatible so we need set different SOABI for musl and not simply assume that all linux is linux-gnu. Replace linux-gnu with the detected os for the build from config.guess for linux-musl*.
* bpo-26552: Fixed case where failing `asyncio.ensure_future` did not close ↵Kumar Aditya2022-01-281-0/+1
| | | | the coroutine (#30288)
* bpo-46553: allow bare typing.ClassVar annotations (#30983)Gregory Beauregard2022-01-281-0/+1
| | | | | These are used in the wild and covered by dataclasses unit tests. Several static type checkers support this pattern.
* bpo-33125: Enables building traditional installer for Windows ARM64 (GH-30885)Steve Dower2022-01-281-0/+2
| | | Also makes a few general improvements to the build process and removes some dead code.
* bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485)Kumar Aditya2022-01-281-0/+1
|
* bpo-46329: Split calls into precall and call instructions. (GH-30855)Mark Shannon2022-01-281-0/+12
| | | | | | | | | | | | | | * Add PRECALL_FUNCTION opcode. * Move 'call shape' varaibles into struct. * Replace CALL_NO_KW and CALL_KW with KW_NAMES and CALL instructions. * Specialize for builtin methods taking using the METH_FASTCALL | METH_KEYWORDS protocol. * Allow kwnames for specialized calls to builtin types. * Specialize calls to tuple(arg) and str(arg).
* bpo-46407: Optimizing some modulo operations (GH-30653)Crowthebird2022-01-282-0/+2
| | | | | | | Added new internal functions to compute mod without also computing the quotient. The loops can be leaner then, which leads to modestly but reliably faster execution in contexts that know they don't need the quotient. Code by Jeremiah Vivian (Pascual).
* bpo-46542: test_json uses support.infinite_recursion() (GH-30972)Victor Stinner2022-01-281-0/+2
| | | | Fix test_json tests checking for RecursionError: modify these tests to use support.infinite_recursion().
* bpo-40170: Remove PyHeapType_GET_MEMBERS() macro (GH-30942)Victor Stinner2022-01-271-0/+4
| | | | | | | | Remove the PyHeapType_GET_MEMBERS() macro. It was exposed in the public C API by mistake, it must only be used by Python internally. Use the PyTypeObject.tp_members member instead. Rename PyHeapType_GET_MEMBERS() to _PyHeapType_GET_MEMBERS() and move it to the internal C API.
* bpo-46458: emit code for else of a try block immediately after the try body ↵Irit Katriel2022-01-271-0/+4
| | | | (GH-30751)
* bpo-46476: Fix memory leak in code objects generated by deepfreeze (GH-30853)Kumar Aditya2022-01-271-0/+1
| | | Add _Py_Deepfreeze_Fini() and _PyStaticCode_Dealloc() functions.
* bpo-44791: Fix substitution of ParamSpec in Concatenate with different ↵Serhiy Storchaka2022-01-271-0/+5
| | | | | | | | | parameter expressions (GH-27518) * Substitution with a list of types returns now a tuple of types. * Substitution with Concatenate returns now a Concatenate with concatenated lists of arguments. * Substitution with Ellipsis is not supported.
* bpo-46544: Do not leak `x` and `uspace` in textwrap.TextWrapper (GH-30955)Nikita Sobolev2022-01-271-0/+2
|
* bpo-40280: Use presence of msvcrt module to detect Windows (GH-30930)Christian Heimes2022-01-271-2/+2
|
* bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)Gregory P. Smith2022-01-271-0/+3
| | | | | | | | | | Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed.
* bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)Terry Jan Reedy2022-01-271-0/+4
| | | | | | In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit' is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and 'exit()' mean 'close Shell'. If there are no other windows, this also exits IDLE.
* bpo-46539: Pass status of special typeforms to forward references (GH-30926)Gregory Beauregard2022-01-271-0/+1
| | | | | | | | | Previously this didn't matter because there weren't any valid code paths that could trigger a type check with a special form, but after the bug fix for `Annotated` wrapping special forms it's now possible to annotate something like `Annotated['ClassVar[int]', (3, 4)]`. This change would also be needed for proposed future changes, such as allowing `ClassVar` and `Final` to nest each other in dataclasses.
* bpo-40170: Remove _Py_GetAllocatedBlocks() function (GH-30940)Victor Stinner2022-01-271-0/+2
| | | | Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() private functions to the internal C API.
* bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929)Victor Stinner2022-01-261-0/+2
| | | | | Fix GCC detection in setup.py when cross-compiling. The C compiler is now run with LC_ALL=C. Previously, the detection failed with a German locale.
* bpo-46528: Simplify the VM's stack manipulations (GH-30902)Brandt Bucher2022-01-261-0/+3
|