summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. ↵Mark Shannon2021-11-187-89/+145
| | | | (GH-29592)
* bpo-45573: check for ossaudiodev in configure (GH-29614)Christian Heimes2021-11-184-7/+75
|
* bpo-45510: Specialize BINARY_SUBTRACT (GH-29523)Dong-hee Na2021-11-187-50/+107
|
* bpo-45512: Use Argument Clinic to set sqlite3 isolation level (GH-29593)Erlend Egeberg Aasland2021-11-182-72/+67
|
* bpo-45835: Fix race condition in test_queue (#29601)Sam Gross2021-11-182-11/+12
| | | | | | | | | | Some of the tests in test_queue had a race condition in which a non-sentinel value could be enqueued after the final sentinel value leading to not all the inputs being processed (and test failures). This changes feed() to enqueue a sentinel once the inputs are exhausted, which guarantees that the final queued object is a sentinel. This requires the number of feeder threads to match the number of consumer threads, but that's already the case in the relevant tests.
* bpo-45573: Introduce extension module flags in Makefile (GH-29594)Christian Heimes2021-11-188-103/+435
| | | | | | | | | | | | | | | | | | ``configure`` now uses a standardized format to forward state, compiler flags, and linker flags to ``Makefile``, ``setup.py``, and ``Modules/Setup``. ``makesetup`` use the new variables by default if a module line does not contain any compiler or linker flags. ``setup.py`` has a new function ``addext()``. For a module ``egg``, configure adds: * ``MODULE_EGG`` with value yes, missing, disabled, or n/a * ``MODULE_EGG_CFLAGS`` * ``MODULE_EGG_LDFLAGS`` ``Makefile.pre.in`` may also provide ``MODULE_EGG_DEPS`` that lists dependencies such as header files and static libs. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45429: Merge whatsnew about time.sleep (GH-29589)Dong-hee Na2021-11-182-11/+11
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [docs] Add missing word "any" in unittest -k cmdline option description ↵ch33zer2021-11-171-1/+1
| | | | (GH-29571)
* bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` ↵Dennis Sweeney2021-11-173-3/+43
| | | | (GH-29590)
* bpo-42540: reallocation of id_mutex should not force default allocator ↵Sam Gross2021-11-173-1/+22
| | | | | | | (GH-29564) Unlike the other locks reinitialized by _PyRuntimeState_ReInitThreads, the "interpreters.main->id_mutex" is not freed by _PyRuntimeState_Fini and should not force the default raw allocator.
* bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596)Victor Stinner2021-11-172-0/+27
| | | | If the string is ASCII only and doesn't need to escape characters, write the whole string with a single write() syscall.
* bpo-45512: Simplify manage isolation level (GH-29562)Dong-hee Na2021-11-173-41/+33
|
* bpo-45512: Extend `sqlite3` test suite regarding isolation levels (GH-29576)Erlend Egeberg Aasland2021-11-172-3/+124
|
* bpo-28806: Continue work: improve the netrc library (GH-26330)Emmanuel Arias2021-11-174-129/+319
| | | | | | | | | Continue with the improvement of the library netrc Original work and report Xiang Zhang <angwerzx@126.com> * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are ↵Pablo Galindo Salgado2021-11-164-1/+25
| | | | not provided (GH-29582)
* bpo-37800: Clean up importlib documentation for some module attributes ↵Géry Ogam2021-11-161-63/+77
| | | | | (GH-10016) Automerge-Triggered-By: GH:brettcannon
* bpo-45820: Fix a segfault when the parser fails without reading any input ↵Pablo Galindo Salgado2021-11-162-0/+10
| | | | (GH-29580)
* bpo-45126: Harden `sqlite3` connection initialisation (GH-28227)Erlend Egeberg Aasland2021-11-163-62/+110
|
* bpo-45636: Simplify BINARY_OP (GH-29565)Brandt Bucher2021-11-164-83/+51
|
* bpo-45429: Support CREATE_WAITABLE_TIMER_HIGH_RESOLUTION if possible (GH-29203)Dong-hee Na2021-11-163-9/+37
|
* bpo-45292: Use raw strings for regex in tests (GH-29545)Irit Katriel2021-11-161-3/+3
|
* bpo-45753: Make recursion checks more efficient. (GH-29524)Mark Shannon2021-11-1610-43/+50
| | | | * Uses recursion remaining, instead of recursion depth to speed up check against recursion limit.
* bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)Victor Stinner2021-11-1528-3228/+34
| | | | | | | | | | | | | | | | Remove the asyncore and asynchat modules, deprecated in Python 3.6: use the asyncio module instead. Remove the smtpd module, deprecated in Python 3.6: the aiosmtpd module can be used instead, it is based on asyncio. * Remove asyncore, asynchat and smtpd documentation * Remove test_asyncore, test_asynchat and test_smtpd * Rename Lib/asynchat.py to Lib/test/support/_asynchat.py * Rename Lib/asyncore.py to Lib/test/support/_asyncore.py * Rename Lib/smtpd.py to Lib/test/support/_smtpd.py * Remove DeprecationWarning from private _asyncore, _asynchat and _smtpd modules * _smtpd: remove deprecated properties
* bpo-43225: [DOC] Add missing value returned by methods on cookiejar (GH-24522)Emmanuel Arias2021-11-151-3/+3
| | | | | | | | | | | | | | | | * Add missing value returned by methods on cookiejar Documentation say that return something but don't specific with what value is return, and that can be confuse. This patch add that information. * Update Doc/library/http.cookiejar.rst Co-authored-by: andrei kulakov <andrei.avk@gmail.com> * Update Doc/library/http.cookiejar.rst Co-authored-by: andrei kulakov <andrei.avk@gmail.com> Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-25381: Update explanation of exceptions in C. (GH-26838)Terry Jan Reedy2021-11-152-7/+7
| | | | | | | | | | | | | | * bpo-25381: Update explanation of exception globals This paragraph in extending/extending.rst was unchanged (except for NULL markup) since committed in 2007 Aug 15 for 2.6 alpha. * Respond to reviews and remove duplication. * Update Doc/extending/extending.rst Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Save a reference for ensure_future and create_task (GH-29163)Joannah Nanjekye2021-11-152-0/+8
| | | Co-authored-by: Joannah Nanjekye <jnanjekye@python.org>
* bpo-45677: Reword first section of `sqlite3` docs (#29326)Erlend Egeberg Aasland2021-11-152-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-45677: Avoid addressing the reader as 'you' in sqlite3 docs * Adjust wording * Adjust wording again * Typo * Update Doc/library/sqlite3.rst Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> * Address review: adjust wording * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Lib/sqlite3/__init__.py Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/library/sqlite3.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Apply Alex' suggestion, and apply 80 char limit to PR * Minor adjustment Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-45636: Remove the old %-formatting fast-path (GH-29532)Brandt Bucher2021-11-153-12/+10
|
* bpo-45512: Raise exception if sqlite3.Connection.__init__ is called with bad ↵Erlend Egeberg Aasland2021-11-152-5/+19
| | | | | | | | | | | | | | | isolation level (#29561) * bpo-45512: Raise sqlite3.Connection.__init__ is called with bad isolation level * Also explicitly test allowed isolation levels * Use subTest for better error messages if something goes wrong * Update Lib/test/test_sqlite3/test_dbapi.py Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* bpo-45512: Simplify isolation_level handling in `sqlite3` (GH-29053)Erlend Egeberg Aasland2021-11-153-63/+84
|
* bpo-45573: Use Makefile's dependencies in setup.py (GH-29559)Christian Heimes2021-11-142-61/+28
|
* bpo-45752: Remove "array" from list of things that cannot be copied in ↵Alex Waygood2021-11-141-2/+2
| | | | | `copy` module docstring (GH-29555) Automerge-Triggered-By: GH:asvetlov
* bpo-45752: Fix no-support examples in 'copy' docs (GH-29548)M. Mostafa Farzan2021-11-141-1/+1
|
* bpo-45800: Move pyexpat build setup into configure (GH-29547)Christian Heimes2021-11-146-58/+177
| | | | | | Settings for :mod:`pyexpat` C extension are now detected by ``configure``. The bundled ``expat`` library is built in ``Makefile``. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45738: Fix computation of error location for invalid continuation (GH-29550)Pablo Galindo Salgado2021-11-144-12/+14
| | | characters in the parser
* bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)Jack DeVries2021-11-131-2/+2
| | | | | I was reading this bit last night and thought it was a typo. In the light of day, I realized it wasn't *technically* a typo, but definitely confusing wording. This PR fixes the confusing sentence. Automerge-Triggered-By: GH:ericvsmith
* bpo-45798: Move _decimal build setup into configure (GH-29541)Christian Heimes2021-11-137-112/+313
| | | | | | | Settings for :mod:`decimal` internal C extension are now detected by :program:`configure`. The bundled `libmpdec` library is built in ``Makefile``. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45772: socket.socket should be a class instead of a function (GH-23960)Hong Xu2021-11-132-1/+2
| | | | | | | | * bpo-45772: socket.socket should be a class instead of a function Currently `socket.socket` is documented as a function, but it is really a class (and thus has function-like usage to construct an object). This correction would ensure that Python projects that are interlinking Python's documentation can properly locate `socket.socket` as a type.
* bpo-45711: assert that the type of exc_info is redundant (GH-29518)Irit Katriel2021-11-121-0/+25
|
* bpo-45745: Remove regrtest --findleaks options (GH-29514)Victor Stinner2021-11-125-17/+7
| | | | | Remove the --findleaks command line option of regrtest: use the --fail-env-changed option instead. Since Python 3.7, it was a deprecated alias to the --fail-env-changed option.
* bpo-45711: Re-bump the magic number and update doc (GH-29528)Brandt Bucher2021-11-123-3/+11
|
* bpo-45792: Fix contextvar.Token's intersphinx FQN (GH-29533)Hynek Schlawack2021-11-121-1/+1
| | | Since `.. module:: contextvars` sets the module using `.. class:: contextvars.Token`, intersphinx records it as `contextvars.contextvars.Token`.
* bpo-45235: Revert an argparse bugfix that caused a regression (GH-29525)Raymond Hettinger2021-11-123-13/+9
| | | | | * Revert "bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420) (GH-28443)" This reverts commit a18d52269ab6071a605d6c72f6af585a4c533ca4.
* bpo-45773: Stop "optimizing" certain jump patterns (GH-29505)Brandt Bucher2021-11-113-76/+49
|
* bpo-45636: Merge all numeric operators (GH-29482)Brandt Bucher2021-11-1116-1079/+611
|
* bpo-45696: Deep-freeze selected modules (GH-29118)Guido van Rossum2021-11-1116-56/+808
| | | | | | | This gains 10% or more in startup time for `python -c pass` on UNIX-ish systems. The Makefile.pre.in generating code builds on Eric's work for bpo-45020, but the .c file generator is new. Windows version TBD.
* bpo-45723: Add --with-pkg-config to configure (GH-29517)Christian Heimes2021-11-104-135/+210
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45747: Detect gdbm/dbm dependencies in configure (GH-29467)Christian Heimes2021-11-108-262/+497
| | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-45754: Use correct SQLite limit when checking statement length (GH-29489)Erlend Egeberg Aasland2021-11-105-11/+14
|
* bpo-45711: remove unnecessary DUP_TOP and POP in exception handling (GH-29495)Irit Katriel2021-11-104-100/+93
|