summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Eliminate NOPs in extended blocks. (GH-24209)Mark Shannon2021-01-131-5/+13
|
* bpo-42908: Mark cleanup code at end of try-except and with artificial (#24202)Mark Shannon2021-01-136-4359/+4473
| | | | | | | | | * Mark bytecodes at end of try-except as artificial. * Make sure that the CFG is consistent throughout optimiization. * Extend line-number propagation logic so that implicit returns after 'try-except' or 'with' have the correct line numbers. * Update importlib
* bpo-1635741: Fix PyModule_AddObjectRef to use EXPORT_FUNC (GH-24205)Dong-hee Na2021-01-131-1/+1
|
* bpo-42901: [Enum] move member creation to `__set_name__` (GH-24196)Ethan Furman2021-01-134-110/+207
| | | | | | | | | | | `type.__new__` calls `__set_name__` and `__init_subclass__`, which means that any work metaclasses do after calling `super().__new__()` will not be available to those two methods. In particular, `Enum` classes that want to make use of `__init_subclass__` will not see any members. Almost all customization is therefore moved to before the `type.__new__()` call, including changing all members to a proto member descriptor with a `__set_name__` that will do the final conversion of a member to be an instance of the `Enum` class.
* bpo-37324: Remove ABC aliases from collections (GH-23754)Hugo van Kemenade2021-01-124-21/+6
| | | | Remove deprecated aliases to Abstract Base Classes from the collections module.
* bpo-42848: remove recursion from TracebackException (GH-24158)Irit Katriel2021-01-123-46/+95
|
* bpo-42874: Remove grep -qE options for Solaris 10 compatibility (GH-24200)Paul Ganssle2021-01-123-2/+5
| | | | | | | | According to [bpo-42874](), some versions of grep do not support the `-q` and `-E` options. Although both options are used elsewhere in the configure script, this particular bit of validation can be achieved without them, so there's no real harm in using a grep call with no flags. Would be good to get some people taking advantage of the `--with-tzpath` arguments in the wild to try this out.. Local testing seems to indicate that this does the same thing, but I don't know that we have any buildbots using this option. Maybe @pablogsal? [bpo-42874]():
* bpo-41994: Fix refcount issues in Python/import.c (GH-22632)Serhiy Storchaka2021-01-124-63/+51
| | | https://bugs.python.org/issue41994
* bpo-42882: Add test_embed.test_unicode_id_init() (GH-24198)Victor Stinner2021-01-122-0/+44
| | | | Test that _PyUnicode_FromId() works when Python is initialized multiples times.
* bpo-42882: _PyRuntimeState_Init() leaves unicode next_index unchanged (GH-24193)Victor Stinner2021-01-123-1/+11
| | | | | | | | Fix the _PyUnicode_FromId() function (_Py_IDENTIFIER(var) API) when Py_Initialize() / Py_Finalize() is called multiple times: preserve _PyRuntime.unicode_ids.next_index value. Use _PyRuntimeState_INIT macro instead memset(0) to reset _PyRuntimeState members to zero.
* bpo-42870: Document change in argparse help output. (GH-24190)Tomáš Hrnčiar2021-01-122-0/+7
|
* Fix various ParamSpec errors in typing (GH-24176)Ken Jin2021-01-112-3/+3
| | | | | 1. ParamSpec -> TypeVar for ``typing.Concatenate`` 2. ParamSpec's call signature should align with its documentation. Noticed in GH-24169
* bpo-33065: Fix problem debugging user classes with __repr__ method (GH-24183)Terry Jan Reedy2021-01-104-3/+20
| | | | | If __repr__ uses instance attributes, as normal, and one steps through the __init__ method, debugger may try to get repr before the instance attributes exist. reprlib.repr handles the error.
* bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170)Erlend Egeberg Aasland2021-01-092-1/+5
|
* bpo-42802: Remove distutils bdist_wininst command (GH-24043)Victor Stinner2021-01-0840-4057/+17
| | | | | | | | | | The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst
* Fix a typo in docs for typing.Concatenate (#24169)Johan Dahlin2021-01-081-1/+1
| | | Return param spec should be R, not T
* bpo-42866: Add traverse func to _multibytecodec.MultibyteCodec (GH-24166)Victor Stinner2021-01-081-3/+13
| | | | Convert _multibytecodec.MultibyteCodec type to a GC type and adds a traverse function.
* bpo-42866: Fix refleak in CJK getcodec() (GH-24165)Victor Stinner2021-01-082-0/+3
| | | Fix a reference leak in the getcodec() function of CJK codecs.
* bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157)Victor Stinner2021-01-073-31/+66
| | | | | | | | | | | Convert the 6 CJK codec extension modules (_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw) to the multiphase initialization API (PEP 489). Remove getmultibytecodec() local cache: always import _multibytecodec. It should be uncommon to get a codec. For example, this function is only called once per CJK codec module. Fix a reference leak in register_maps() error path.
* bpo-42860: Remove type error from grammar (GH-24156)Lysandros Nikolaou2021-01-072-421/+438
| | | | | | This is only there so that alternative implementations written in statically-typed languages can use this grammar without having type errors in the way. Automerge-Triggered-By: GH:lysnikolaou
* bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154)Ethan Furman2021-01-073-75/+2
| | | Solution to support calls to `__init_subclass__` with members defined is too brittle and breaks with certain mixins.
* Update frame.f_lineno before any call to the (C) tracing function. (GH-24150)Mark Shannon2021-01-071-33/+54
| | | * Minimizes breakage of C extensions and ensures PyFrame_GetLineNumber is efficient.
* bpo-42783: Documentation for asyncio.sleep(0) (#24002)Simon Willison2021-01-071-0/+4
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-42847: Normalise Lib/sqlite3/test/* file encodings (GH-24147)Erlend Egeberg Aasland2021-01-076-21/+15
| | | Convert from ISO-8859-1 to UTF-8.
* bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests ↵Erlend Egeberg Aasland2021-01-0710-320/+345
| | | | (GH-20538)
* bpo-41798: Allocate the _datetime.datetime_CAPI on the heap memory (GH-24096)Hai Shi2021-01-061-21/+43
|
* bpo-41798: Allocate _socket module C API on the heap (GH-24126)Erlend Egeberg Aasland2021-01-062-16/+47
|
* bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent ↵Yair Frid2021-01-062-1/+3
| | | | | (GH-24100) Automerge-Triggered-By: GH:brettcannon
* bpo-41798: Allocate _decimal extension module C API on the heap (GH-24117)Erlend Egeberg Aasland2021-01-062-6/+23
|
* bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602)Antonio Cuni2021-01-0626-52/+74
| | | | | I think that none of these API calls can fail, but only few of them are documented as such. Add the sentence "This function always succeeds" (which is the same already used e.g. by PyNumber_Check) to all of them.
* bpo-14014: Clarify StreamWriter.reset() documentation (GH-13716)Berker Peksag2021-01-062-4/+4
|
* bpo-40959: Remove unused declarations from sqlite3 headers (GH-20828)Erlend Egeberg Aasland2021-01-065-16/+0
|
* bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)Erlend Egeberg Aasland2021-01-064-0/+32
|
* bpo-38413: Remove outdated section about multithreading in sqlite3 (GH-23159)Vladimir2021-01-061-13/+0
|
* bpo-40810: Require SQLite 3.7.15 (GH-24106)Erlend Egeberg Aasland2021-01-069-56/+11
|
* bpo-40956: Convert _sqlite3.Cursor to Argument Clinic (GH-24007)Erlend Egeberg Aasland2021-01-053-68/+396
|
* bpo-42584: Update Windows installer to use SQLite 3.34.0 (GH-23675)Erlend Egeberg Aasland2021-01-054-3/+4
|
* bpo-41837: Updated Windows installer to include OpenSSL 1.1.1i (GH-24125)Steve Dower2021-01-054-5/+6
|
* bpo-42823: Fix frame lineno when frame.f_trace is set (GH-24099)Mark Shannon2021-01-058-1158/+1181
| | | | | | | | | * Add test for frame.f_lineno with/without tracing. * Make sure that frame.f_lineno is correct regardless of whether frame.f_trace is set. * Update importlib * Add NEWS
* bpo-32631: IDLE: Enable zzdummy example extension module (GH-14491)Cheryl Sabella2021-01-056-31/+227
| | | | | Make menu items work with formatter, add docstrings, add 100% tests. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42681: Fix test_curses failures related to color pairs (GH-24089)Serhiy Storchaka2021-01-052-32/+81
| | | | | | | On ncurses 6.1 pair numbers are limited by SHORT_MAX-1, even with extended color support. Improve error reporting and tests for color functions.
* bpo-40636: Remove overly-strict zip pickling tests (GH-24109)Brandt Bucher2021-01-051-42/+0
|
* Fix broken NEWS markup (GH-24110)Brandt Bucher2021-01-051-1/+1
|
* bpo-40810: Fix CheckTraceCallbackContent for SQLite pre 3.7.15 (GH-20530)Erlend Egeberg Aasland2021-01-042-0/+9
| | | | Ref. [SQLite 3.7.15 changelog](https://sqlite.org/changes.html#version_3_7_15): _"Avoid invoking the sqlite3_trace() callback multiple times when a statement is automatically reprepared due to SQLITE_SCHEMA errors."_
* bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095)Erlend Egeberg Aasland2021-01-043-261/+220
| | | | Convert the _multibytecodec extension module (CJK codecs) to multi-phase initialization (PEP 489).
* Post 3.10.0a4Pablo Galindo2021-01-041-1/+1
|
* Merge tag 'v3.10.0a4'Pablo Galindo2021-01-04102-273/+1129
|\ | | | | | | Python 3.10.0a4
| * Python 3.10.0a4v3.10.0a4Pablo Galindo2021-01-04102-273/+1129
| |
* | Do not remove x bit from published directories (GH-24101)Steve Dower2021-01-041-2/+2
| |
* | bpo-42810: Mark jumps at end of if and try statements as artificial. (GH-24091)Mark Shannon2021-01-045-2185/+2244
|/ | | | | | | * Mark jumps at end of if and try statements as artificial. * Update importlib * Add comment explaining the purpose of ADDOP_JUMP_NOLINE.