summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-89289: Harden sqlite3.Connection init (#92214)Erlend Egeberg Aasland2022-05-031-8/+15
| | | | | - Make sure SQLite resources are freed if database open fails - Remove unneeded branches if init is aborted
* gh-89653: PEP 670: Convert PyBytes macros to functions (#91990)Victor Stinner2022-05-034-14/+47
| | | | | | | | | | | | Convert the following macros to static inline functions: * PyByteArray_AS_STRING() * PyByteArray_GET_SIZE() * PyBytes_AS_STRING() * PyBytes_GET_SIZE() Limited C API version 3.11 no longer casts arguments. Add _PyBytes_CAST() and _PyByteArray_CAST() macros.
* gh-92206: Improve scoping of sqlite3 reset statement helper (#92241)Erlend Egeberg Aasland2022-05-033-30/+28
|
* bpo-46696: Add socket.SO_INCOMING_CPU constant (#31237)David CARLIER2022-05-033-0/+13
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-29890: Test IPv*Interface construction with tuple argument (#30862)Humbled Drugman2022-05-032-0/+10
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)Abhigyan Bose2022-05-032-1/+2
| | | Fixes GH-91752.
* gh-88753: Make BooleanOptionalAction's addition of default to help more ↵Toshio Kuratomi2022-05-033-16/+32
| | | | | | | | | | | | | | | | similar to other actions (#27808) Help for other actions omit the default value if default is SUPPRESS or already contains the special format string '%(default)'. Add those special cases to BooleanOptionalAction's help formatting too. Fixes https://bugs.python.org/issue44587 so that default=SUPPRESS is not emitted. Fixes https://bugs.python.org/issue38956 as this code will detect whether '%(default)s' has already been specified in the help string. Signed-off-by: Micky Yun Chan (michiboo): <chanmickyyun@gmail.com> Co-authored-by: Micky Yun Chan <michan@redhat.com>
* gh-89452: Prefer gdbm-compat over ndbm (#92208)Łukasz Langa2022-05-035-9/+11
| | | | | This makes macOS gdbm provided by Homebrew not segfault through correct selection of the linked library (-lgdbm_compat) *AND* the correct ndbm-style header (gdbm-ndbm.h instead of the invalid ndbm.h).
* bpo-46604: fix function name in ssl module docstring (#31064)Kossi GLOKPOR2022-05-031-3/+4
| | | | | The function fetch_server_certificate is replaced by get_server_certificate in the module. I reflected the change in the module docstrings. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92031: Deoptimize Static Code at Finalization (GH-92039)Dennis Sweeney2022-05-035-10/+225
|
* gh-90887: posix module: Add more flags for fcopy_file (#31300)David CARLIER2022-05-032-0/+4
| | | | | | Closes #90887 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* GH-91355: micro-optimize Connection.send_bytes() method (gh-32247)Ma Lin2022-05-031-3/+2
|
* Link to GitHub instead of BPO for CPython bug tracker (GH-92221)slateny2022-05-032-9/+3
|
* gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230)Victor Stinner2022-05-039-24/+24
| | | Rename also _Py_static_cast() to _Py_STATIC_CAST().
* bpo-44863: Allow generic typing.TypedDict (#27663)Samodya Abey2022-05-036-7/+172
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-92154: Expose PyCode_GetCode in the C API (GH-92168)Ken Jin2022-05-036-0/+53
|
* gh-92206: Improve scoping of sqlite3 register cursor helper (#92212)Erlend Egeberg Aasland2022-05-033-28/+23
|
* Dependabot: only bump actions for major versions (#92186)Hugo van Kemenade2022-05-032-3/+8
|
* gh-70363: Implement `io.IOBase` interface for `SpooledTemporaryFile` (GH-29560)Carey Metcalfe2022-05-035-3/+92
| | | | | | | | | | | | | | | | Since the underlying file-like objects (either `io.BytesIO`, or a true file object) all implement the `io.IOBase` interface, the `SpooledTemporaryFile` should as well. Additionally, since the underlying file object will either be an instance of an `io.BufferedIOBase` (for binary mode) or an `io.TextIOBase` (for text mode), methods for these classes were also implemented. In every case, the required methods and properties are simply delegated to the underlying file object. Co-authored-by: Gary Fernie <Gary.Fernie@skyscanner.net> Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-46415: Use f-string for ValueError in ↵Thomas Cellerier2022-05-033-9/+24
| | | | | | | | | | | | | | | | | | | | | | ipaddress.ip_{address,network,interface} helper functions (#30642) `IPv*Network` and `IPv*Interface` constructors accept a 2-tuple of (address description, netmask) as the address parameter. When the tuple-based address is used errors are not propagated correctly through the `ipaddress.ip_*` helper because of the %-formatting now expecting several arguments: In [7]: ipaddress.ip_network(("192.168.100.0", "fooo")) ... TypeError: not all arguments converted during string formatting Compared to: In [8]: ipaddress.IPv4Network(("192.168.100.0", "foo")) ... NetmaskValueError: 'foo' is not a valid netmask Use an f-string to make sure the error is always properly formatted. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* The stdev calculation is more accurate computing its own mean (#92220)Raymond Hettinger2022-05-031-2/+1
|
* gh-92169: Use warnings_helper.import_deprecated() to import deprecated ↵Hugo van Kemenade2022-05-0310-41/+33
| | | | modules uniformly in tests (GH-92170)
* Fix doc warnings in What's New in 3.11 (GH-92215)Ken Jin2022-05-031-1/+1
|
* bpo-46267: Test compresslevel in gzip.compress (#30416)Ruben Vorderman2022-05-031-0/+9
| | | Fixes #90425
* gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207)Erlend Egeberg Aasland2022-05-033-16/+14
|
* bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858)Itai Steinherz2022-05-024-1/+57
|
* gh-91621: Fix typing.get_type_hints for collections.abc.Callable (#91656)Shantanu2022-05-023-3/+35
| | | | | | This mirrors logic in typing.get_args. The trickiness comes from how we flatten args in collections.abc.Callable, see https://bugs.python.org/issue42195
* gh-84461: Add ability for multiprocessed libregrtest to use a different ↵Ethan Smith2022-05-023-2/+12
| | | | Python executable (GH-91930)
* bpo-43923: Add support for generic typing.NamedTuple (#92027)Serhiy Storchaka2022-05-025-4/+66
|
* gh-92106: Add test that subscription works on arbitrary TypedDicts (#92176)Serhiy Storchaka2022-05-021-0/+13
|
* gh-92032: Add soft keywords to rlcompleter (#92029)kbeldan2022-05-023-2/+7
| | | | | | | Let the interpreter autocomplete soft-keywords, ATM the PEP-634 'match' / 'case' / '_' (wildcard pattern). Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* bpo-46586: Fix more erroneous doc links to builtins (#31429)Meer Suri2022-05-023-3/+3
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Éric <merwok@netwok.org>
* Delete outdated comment in logging module (#31117)Thomas Miedema2022-05-021-2/+0
| | | | | | The root logger is now accessible via its name, see https://github.com/python/cpython/pull/15077 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46285: Add command-line option -p/--protocol to module http.server (#30999)Géry Ogam2022-05-023-9/+29
| | | | Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-6686: Replace String with Bytes in xml.sax.handler documentation (#30612)Yassir Karroum2022-05-021-1/+1
|
* bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957)Nikita Sobolev2022-05-022-0/+2
| | | Fixes #90705
* importlib docs: Update importlib.abc hierarchy (#31113)David Gilbertson2022-05-021-4/+3
| | | Fixed some inconsistencies in the text about relationships
* bpo-46787: Fix `ProcessPoolExecutor exception` memory leak (GH-31408) (#31408)themylogin2022-05-022-0/+4
| | | | Do not store `ProcessPoolExecutor` work item exception traceback that prevents exception frame locals from being garbage collected.
* Fix the closure argument to PyEval_EvalCodeEx. (GH-92175)larryhastings2022-05-022-1/+3
|
* Fix duplicate word. (GH-92182)Benjamin Peterson2022-05-021-1/+1
|
* gh-87390: Add __unpacked__ attribute to types.GenericAlias (#92059)Jelle Zijlstra2022-05-024-0/+19
|
* gh-90765: configparser test: Catch deprecation warning (#91480)Hugo van Kemenade2022-05-021-1/+3
|
* gh-90213: Speed up right shifts of negative integers (GH-30277)Mark Dickinson2022-05-023-29/+75
|
* gh-91783: Document security considerations for shutil.unpack_archive (#91844)Sam Ezeh2022-05-022-1/+9
|
* suggestions.c: Improve efficiency of levenshtein_distance method (#91835)Pieter Eendebak2022-05-021-1/+3
|
* Fix typo in turtle deprecation warning and use warnings._deprecated (#91862)Hugo van Kemenade2022-05-021-4/+4
|
* Add weakref_slot to dataclass decorator, to allow instances with slots to be ↵Eric V. Smith2022-05-024-13/+106
| | | | weakref-able. (#92160)
* gh-92082: contextlib docs: Change aclosing from a class to a function for ↵Thaddeus14992022-05-021-1/+1
| | | | | consistency (#92155) Signed-off-by: prwatson <prwatson@redhat.com>
* gh-91276: revert the increase of dis output width (GH-92126)Irit Katriel2022-05-022-254/+266
|
* gh-88546: glob.glob docs: Make new paragraph for emphasis and reordered ↵slateny2022-05-021-2/+5
| | | | sentence (#91614)