summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix docs source link for importlib.metadata (GH-29025)Philipp A2021-10-301-1/+1
| | | | | | | The link broke for Python 3.10 since importlib.metadata was made from a module into a package I think this is trivial enough to not need a bpo issue. Automerge-Triggered-By: GH:jaraco
* bpo-10572: Move `sqlite3` tests to `Lib/test` (GH-29304)Erlend Egeberg Aasland2021-10-2916-22/+36
| | | Automerge-Triggered-By: GH:brettcannon
* bpo-45379: clarify FROZEN_EXCLUDED and FROZEN_INVALID documentation (GH-29189)Filipe Laíns2021-10-291-2/+7
| | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory ↵Erlend Egeberg Aasland2021-10-292-0/+6
| | | | error (GH-29171)
* bpo-45600: Enhanced / clarified the docs for os.environ and os.environb ↵andrei kulakov2021-10-291-7/+8
| | | | | (GH-29204) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45335: Add note to `sqlite3` docs about "timestamp" converter (GH-29200)Ian Fisher2021-10-291-0/+6
|
* bpo-45548: Some test modules must be built as shared libs (GH-29268)Christian Heimes2021-10-296-13/+41
| | | | | | | | | | | | | Some test cases don't work when test modules are static extensions. Add dependency on Modules/config.c to trigger a rebuild whenever a module build type is changed. ``makesetup`` puts shared extensions into ``Modules/`` directory. Create symlinks from pybuilddir so the extensions can be imported. Note: It is not possible to use the content of pybuilddir.txt as a build target. Makefile evaluates target variables in the first pass. The pybuilddir.txt file does not exist at that point.
* bpo-45655: Add ref to union type expressions at top of typing docs (GH-29309)Alex Waygood2021-10-291-1/+2
|
* bpo-45628: Check all parts of the suffix for an extension match. (GH-29310)Vinay Sajip2021-10-291-2/+7
|
* bpo-45621: Small changes to mmap (GH-29247)Tim Golden2021-10-292-24/+21
| | | | * Small tidy-ups / comments * Use randomized names when testing tagged mmaps to avoid any risk of parallel tests treading on each others' toes
* bpo-45395: Make custom frozen modules additions instead of replacements. ↵Eric Snow2021-10-2810-129/+219
| | | | | | | | | (gh-28778) Currently custom modules (the array set on PyImport_FrozenModules) replace all the frozen stdlib modules. That can be problematic and is unlikely to be what the user wants. This change treats the custom frozen modules as additions instead. They take precedence over all other frozen modules except for those needed to bootstrap the import system. If the "code" field of an entry in the custom array is NULL then that frozen module is treated as disabled, which allows a custom entry to disable a frozen stdlib module. This change allows us to get rid of is_essential_frozen_module() and simplifies the logic for which frozen modules should be ignored. https://bugs.python.org/issue45395
* bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167)Nikita Sobolev2021-10-282-44/+54
|
* bpo-45379: add custom error string for FROZEN_DISABLED (GH-29190)Filipe Laíns2021-10-282-1/+5
| | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Gareth Rees <gdr@garethrees.org>
* bpo-45624: make test_graphlib not depend on the iteration order of sets ↵Carl Friedrich Bolz-Tereick2021-10-281-4/+13
| | | | | | | | (GH-29233) the current test depended on integer sets being iterated on in a certain fixed order. That order is different on PyPy (insertion based) and could change in CPython in the future in theory. Make the test robust against a different iteration order by sorting.
* bpo-45655: Add "relevant PEPs" section to ``typing`` documentation (GH-29280)Alex Waygood2021-10-282-7/+43
| | | | | | | | The list of PEPs at the top of the documentation for the ``typing`` module has become too long to be readable. This PR proposes presenting this information in a more structured and readable way by adding a new "relevant PEPs" section to the ``typing`` docs. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45612: Add sqlite3 module docstring (GH-29224)Erlend Egeberg Aasland2021-10-281-0/+34
|
* bpo-45583: Correct datamodel documentation of int() (GH-29182)Arthur Milchior2021-10-281-2/+2
| | | | It should be noted that this part of the documentation is redundant with function.rst's documentation of int. This one was correctly updated with Python 3.8.
* Fixed typos (GH-29211)MalikIdreesHasanKhan2021-10-281-4/+4
|
* bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func ↵Nikita Sobolev2021-10-282-1/+3
| | | | | (GH-29226) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219)Erlend Egeberg Aasland2021-10-281-0/+46
|
* bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)Ned Deily2021-10-283-1/+206
| | | | when using the Tk 8.6.11 provided by python.org macOS installers. Patch by Marc Culler of the Tk project.
* bpo-45562: Ensure all tokenizer debug messages are printed to stderr (GH-29270)Pablo Galindo Salgado2021-10-281-1/+1
|
* Store actual ints, not pointers to them in the interpreter state. (GH-29274)Mark Shannon2021-10-285-21/+10
|
* bpo-45629: Add a test for the "freeze" tool. (gh-29222)Eric Snow2021-10-284-0/+235
| | | | | | | The "freeze" tool has been part of the repo for a long time. However, it hasn't had any tests in the test suite to guard against regressions. We add such a test here. This is especially important as there has been a lot of change recently related to frozen modules, with more to come. Note that as part of the test we build Python out-of-tree and install it in a temp dir. https://bugs.python.org/issue45629
* bpo-45256: Rationalize code around Python-to-Python calls a bit. (GH-29235)Mark Shannon2021-10-284-69/+120
|
* bpo-44525: Add recursive checks for `CALL_FUNCTION_BUILTIN_O` (GH-29271)Ken Jin2021-10-281-0/+6
|
* bpo-45637: Store the frame pointer in the cframe (GH-29267)Mark Shannon2021-10-2810-41/+42
| | | * Rename 'frame' to 'current_frame'
* Fix typo in Counter documentation (GH-29223)Justinas Petuchovas2021-10-281-1/+1
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-30570: Fix segfault on buildbots caused by stack overflow from recursion ↵Dennis Sweeney2021-10-282-12/+18
| | | | | | | in tests (GH-29258) * Don't stackoveflow on debug builds * Also catch the pickletester case
* bpo-45548: Fix out-of-tree and Debian builds (GH-29263)Christian Heimes2021-10-284-57/+87
| | | | | | | | | | | | | | | Add Modules subdirs to SRCDIRS to generate directories for out-of-tree object files. Debian wants ncurses lib. Works on Fedora, too. Debian also needs pkg-config to detect correct flags. Remove more outdated comments. Makefile now tracks header dependencies -lintl is injected by configure when needed. Build _dbm with gdbm-compat. Group some modules by purpose. socket, select, and mmap work on Windows, too.
* bpo-44904: Fix classmethod property bug in doctest module (GH-28838)Alex Waygood2021-10-284-4/+21
| | | | | | | | The doctest module raised an error if a docstring contained an example that attempted to access a classmethod property. (Stacking '@classmethod' on top of `@property` has been supported since Python 3.9; see https://docs.python.org/3/howto/descriptor.html#class-methods.) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45438: format of inspect.Signature with generic builtins (#29212)Martin Rueckl2021-10-273-0/+14
| | | | | | | Use types.GenericAlias in inspect.formatannotation to correctly add type arguments of builtin types to the string representation of Signatures. Co-authored-by: Martin Rückl <martin.rueckl@codecentric.de>
* bpo-45562: Print tokenizer debug messages to stderr (GH-29250)Pablo Galindo Salgado2021-10-271-4/+4
|
* bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246)Sam Gross2021-10-273-9/+33
| | | | | Objects that support garbage collection ("container" objects) should call PyObject_GC_UnTrack() from their destructors before clearing any fields which may point to other "container" objects.
* Don't make a call at the C level when calling bound-methods from Python ↵Mark Shannon2021-10-271-1/+14
| | | | code. (GH-29238)
* bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 ↵m-aciek2021-10-271-0/+4
| | | | | | (GH-29230) Co-authored-by: Maciej Olko <maciej.olko@yougov.com> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-42064: Convert `sqlite3` global state to module state (GH-29073)Erlend Egeberg Aasland2021-10-278-55/+36
|
* bpo-44511: Improve the bytecode for class and mapping patterns (GH-26922)Brandt Bucher2021-10-2710-116/+130
| | | | | | | * Refactor mapping patterns and speed up class patterns. * Simplify MATCH_KEYS and MATCH_CLASS. * Add COPY opcode.
* Remove unused variables. (GH-29231)Benjamin Peterson2021-10-261-5/+1
|
* bpo-40915: Fix mmap resize bugs on Windows (GH-29213)Tim Golden2021-10-263-35/+178
| | | | | | | | | | | (original patch by eryksun) Correctly hand various failure modes when resizing an mmap on Windows: * Resizing a pagefile-backed mmap now creates a new mmap and copies data * Attempting to resize when another mapping is held on the same file raises an OSError * Attempting to resize a nametagged mmap raises an OSError if another mapping is held with the same nametag
* bpo-45548: makesetup improvements (GH-29225)Christian Heimes2021-10-262-4/+14
| | | | | | | * record which modules are build as shared extensions * put object files in same directory as source files * remove dependency on deleted _math.c Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45020: Add tests for the -X "frozen_modules" option. (gh-28997)Eric Snow2021-10-253-0/+78
| | | | | We hadn't explicitly added any tests for this, so here they are. https://bugs.python.org/issue45020
* bpo-45548: FreeBSD doesn't like auto vars in makesetup (GH-29216)Christian Heimes2021-10-251-2/+2
|
* bpo-45548: Add missing extensions to Modules/Setup (GH-29199)Christian Heimes2021-10-251-33/+33
| | | | | | | | | | Adds _ctypes, _decimal, _multiprocessing, _posixshmem, _scproxy, _sqlite3, and _uuid. Use Makefile variables to build OpenSSL and TCL/TK modules. Drop ``-lm`` from math lines. Extensions are always linked against libm. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45595: Make extensions depend on header files (GH-29198)Christian Heimes2021-10-254-3/+34
| | | | | | ``setup.py`` and ``makesetup`` now track build dependencies on all Python header files and module specific header files. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45548: Remove checks for finite and gamma (GH-29206)Christian Heimes2021-10-253-14/+2
|
* bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)Christian Heimes2021-10-2512-346/+51
| | | | | | | | | | | | | The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible ``libm`` and no longer ship with workarounds for missing acosh, asinh, expm1, and log1p functions. The changeset also removes ``_math.c`` and moves the last remaining workaround into ``_math.h``. This simplifies static builds with ``Modules/Setup`` and resolves symbol conflicts. Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Brett Cannon <brett@python.org> Signed-off-by: Christian Heimes <christian@python.org>
* bpo-45530: speed listobject.c's unsafe_tuple_compare() (GH-29076)Tim Peters2021-10-254-13/+81
| | | | | | | | Keep track of whether unsafe_tuple_compare() calls are resolved by the very first tuple elements, and adjust strategy accordingly. This can significantly cut the number of calls made to the full-blown PyObject_RichCompareBool(), and especially when duplicates are rare. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-45566: `test_frozen_pickle` checks all `pickle` protocols (GH-29150)Nikita Sobolev2021-10-242-4/+18
| | | | | Refs https://github.com/python/cpython/pull/29147 Automerge-Triggered-By: GH:ericvsmith
* Expand about soft keywords in the docs for keyword.py (GH-29139)William Andrea2021-10-231-3/+3
| | | | | Add link at the top and fix the existing links to point to the "[soft keywords](https://docs.python.org/3.10/reference/lexical_analysis.html#soft-keywords)" section created in the Python 3.10 docs. Changes should be backported to 3.10 as well.