summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Restrict use of Mock objects as specs (GH-31090)Matthew Suozzo2022-02-034-3/+20
| | | | | Follow-on to https://github.com/python/cpython/pull/25326 This covers cases where mock objects are passed directly to spec.
* bpo-45629: Improve test.support.skip_if_buildbot (GH-31094)Gregory P. Smith2022-02-031-4/+6
| | | | | | | It was added as part of #29222 to avoid running freeze tool tests on the buildbots but the logic was wrong so it did not skip tests on typical posix setup buildbots where the worker is launched from cron via an @reboot task and thus have no USER environment variable. This uses the canonical `getpass.getuser()` API rather than rolling its own attempt.
* bpo-45975: Use walrus operator for some idlelib while loops (GH-31083)Nick Drozd2022-02-035-24/+9
|
* bpo-46576: bpo-46524: Disable compiler optimization within ↵Gregory P. Smith2022-02-022-0/+13
| | | | | | | | | | | | | | | | | | | | 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-022-3/+16
| | | | completion (GH-31086)
* bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952)Hugo van Kemenade2022-02-025-11/+105
| | | | | | | * Revert "bpo-45173 Remove configparser deprecations" This reverts commit df2284bc416dcccba1125b12af4499c45baabe4f. * bpo-45173: Note these configparser deprecations will be removed in 3.12
* bpo-37705: Remove orphaned PC/errmap.mak (GH-29724)Oleg Iarygin2022-02-021-5/+0
| | | | | | | After GH-15623 deleted `generrmap.c`, a related mak-file stopped working. The mak contains generrmap-related rules only so it should be removed altogether. Further search for `errmap\.mak|generrmap` regex through content of CPython files shows no dangling reference left. Since generrmap is already effectively removed, this pull request contains no blurp.
* bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696)Petr Viktorin2022-02-025-9/+74
| | | Automerge-Triggered-By: GH:encukou
* Add specialization stats for FOR_ITER. (GH-31079)Mark Shannon2022-02-023-1/+74
|
* bpo-45459: Add Py_buffer to limited API (GH-29991)Christian Heimes2022-02-0217-131/+308
| | | | | | | | | | | - [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-023-130/+78
| | | | | | | | | | | | | | | | 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-46072: Add some frame stats. (GH-31060)Mark Shannon2022-02-027-1/+16
|
* Remove Python 3.3 compatibility code from overlapped.c (GH-31049)Kumar Aditya2022-02-021-6/+0
|
* bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023)Nikita Sobolev2022-02-021-6/+5
|
* Add recipe for subslices (GH-31028)Raymond Hettinger2022-02-021-0/+9
|
* Fix minor details in the Counter docs (GH-31029)Raymond Hettinger2022-02-022-3/+14
|
* bpo-46414: Add typing.reveal_type (#30646)Jelle Zijlstra2022-02-024-1/+63
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-46602: Do not append conftest.c (GH-31062)adanhawth2022-02-023-4/+5
| | | | | | | | 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-022-4/+13
| | | | 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-024-2/+7
| | | | 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-012-1/+2
| | | | | | | | | | @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-46528: Simplify BUILD_TUPLE/UNPACK_SEQUENCE folding (GH-31039)Brandt Bucher2022-02-012-15/+8
|
* bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)Victor Stinner2022-02-012-11/+16
| | | | | | | | 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-45953: Preserve backward compatibility on some PyThreadState field ↵Eric Snow2022-02-012-6/+9
| | | | | names. (GH-31038) The gevent project is using the two `PyThreadState` fields I renamed in gh-30590. This PR fixes the names. See #msg412046.
* bpo-46487: Add `get_write_buffer_limits` to Write and _SSLProtocol ↵Emiya2022-02-013-0/+13
| | | | | 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-012-3/+4
| | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-46072: Add some object layout and allocation stats (GH-31051)Mark Shannon2022-02-015-1/+51
|
* bpo-46584: remove check for `py2.3` from `ctypes/test_python_api` (GH-31024)Nikita Sobolev2022-02-011-6/+2
|
* bpo-46600: ./configure --with-pydebug uses -Og with clang (GH-31052)Victor Stinner2022-02-013-14/+71
| | | | 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-012-12/+9
|
* bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)Irit Katriel2022-02-011-2/+2
|
* bpo-46355: What's New: Note that PyFrameObject are private (GH-31032)Petr Viktorin2022-02-011-9/+20
| | | | | This adds a slightly more detailed explanation of the change. The most important point is that the changed/removed fields were "subject to change" to begin with.
* bpo-46482: add a test for `typing.Annotation.__new__` (GH-30821)Nikita Sobolev2022-02-011-0/+7
|
* bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)Victor Stinner2022-01-315-23/+47
| | | | | | | | | | | | | | | | | | | | | * 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-46407: Fix long_mod refleak (GH-31025)Ken Jin2022-01-311-1/+1
|
* fFx refleak in isinstance error path (GH-31005)Ken Jin2022-01-291-0/+1
|
* Fix a `UnboundLocalError` bug in `test_sysconfig` (GH-31000)Brett Cannon2022-01-291-2/+2
| | | Accidentally introduced by GH-24502
* bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153)Barney Gale2022-01-284-11/+78
| | | | 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-284-4/+15
| | | | | | | 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-283-3/+21
| | | | the coroutine (#30288)
* bpo-46458: Add tests for context of exception in finally block (GH-30986)Irit Katriel2022-01-281-0/+50
|
* bpo-46560: Fix a typo in `typing.ParamSpec's` doc string (GH-30995)Zackery Spytz2022-01-281-1/+1
|
* bpo-46553: allow bare typing.ClassVar annotations (#30983)Gregory Beauregard2022-01-283-2/+7
| | | | | 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-2847-127/+334
| | | 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-284-3/+4
|
* bpo-46072: Add simple stats for Python calls. (GH-30989)Mark Shannon2022-01-284-0/+29
|
* bpo-46417: _PyStructSequence_FiniType() updates _Py_RefTotal (GH-30988)Victor Stinner2022-01-281-0/+3
|
* bpo-46329: Split calls into precall and call instructions. (GH-30855)Mark Shannon2022-01-2816-629/+912
| | | | | | | | | | | | | | * 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-46449: deepfreeze get_code() now returns strong ref (GH-30987)Kumar Aditya2022-01-281-1/+1
|
* bpo-42238: [doc] Avoid hardcoding fast-moving lines in susp-ignored.csv. ↵Julien Palard2022-01-281-2/+2
| | | | (GH-30981)