Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-89289: Harden sqlite3.Connection init (#92214) | Erlend Egeberg Aasland | 2022-05-03 | 1 | -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 Stinner | 2022-05-03 | 4 | -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 Aasland | 2022-05-03 | 3 | -30/+28 |
| | |||||
* | bpo-46696: Add socket.SO_INCOMING_CPU constant (#31237) | David CARLIER | 2022-05-03 | 3 | -0/+13 |
| | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | bpo-29890: Test IPv*Interface construction with tuple argument (#30862) | Humbled Drugman | 2022-05-03 | 2 | -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 Bose | 2022-05-03 | 2 | -1/+2 |
| | | | Fixes GH-91752. | ||||
* | gh-88753: Make BooleanOptionalAction's addition of default to help more ↵ | Toshio Kuratomi | 2022-05-03 | 3 | -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 Langa | 2022-05-03 | 5 | -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 GLOKPOR | 2022-05-03 | 1 | -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 Sweeney | 2022-05-03 | 5 | -10/+225 |
| | |||||
* | gh-90887: posix module: Add more flags for fcopy_file (#31300) | David CARLIER | 2022-05-03 | 2 | -0/+4 |
| | | | | | | Closes #90887 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | ||||
* | GH-91355: micro-optimize Connection.send_bytes() method (gh-32247) | Ma Lin | 2022-05-03 | 1 | -3/+2 |
| | |||||
* | Link to GitHub instead of BPO for CPython bug tracker (GH-92221) | slateny | 2022-05-03 | 2 | -9/+3 |
| | |||||
* | gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230) | Victor Stinner | 2022-05-03 | 9 | -24/+24 |
| | | | Rename also _Py_static_cast() to _Py_STATIC_CAST(). | ||||
* | bpo-44863: Allow generic typing.TypedDict (#27663) | Samodya Abey | 2022-05-03 | 6 | -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 Jin | 2022-05-03 | 6 | -0/+53 |
| | |||||
* | gh-92206: Improve scoping of sqlite3 register cursor helper (#92212) | Erlend Egeberg Aasland | 2022-05-03 | 3 | -28/+23 |
| | |||||
* | Dependabot: only bump actions for major versions (#92186) | Hugo van Kemenade | 2022-05-03 | 2 | -3/+8 |
| | |||||
* | gh-70363: Implement `io.IOBase` interface for `SpooledTemporaryFile` (GH-29560) | Carey Metcalfe | 2022-05-03 | 5 | -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 Cellerier | 2022-05-03 | 3 | -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 Hettinger | 2022-05-03 | 1 | -2/+1 |
| | |||||
* | gh-92169: Use warnings_helper.import_deprecated() to import deprecated ↵ | Hugo van Kemenade | 2022-05-03 | 10 | -41/+33 |
| | | | | modules uniformly in tests (GH-92170) | ||||
* | Fix doc warnings in What's New in 3.11 (GH-92215) | Ken Jin | 2022-05-03 | 1 | -1/+1 |
| | |||||
* | bpo-46267: Test compresslevel in gzip.compress (#30416) | Ruben Vorderman | 2022-05-03 | 1 | -0/+9 |
| | | | Fixes #90425 | ||||
* | gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207) | Erlend Egeberg Aasland | 2022-05-03 | 3 | -16/+14 |
| | |||||
* | bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858) | Itai Steinherz | 2022-05-02 | 4 | -1/+57 |
| | |||||
* | gh-91621: Fix typing.get_type_hints for collections.abc.Callable (#91656) | Shantanu | 2022-05-02 | 3 | -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 Smith | 2022-05-02 | 3 | -2/+12 |
| | | | | Python executable (GH-91930) | ||||
* | bpo-43923: Add support for generic typing.NamedTuple (#92027) | Serhiy Storchaka | 2022-05-02 | 5 | -4/+66 |
| | |||||
* | gh-92106: Add test that subscription works on arbitrary TypedDicts (#92176) | Serhiy Storchaka | 2022-05-02 | 1 | -0/+13 |
| | |||||
* | gh-92032: Add soft keywords to rlcompleter (#92029) | kbeldan | 2022-05-02 | 3 | -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 Suri | 2022-05-02 | 3 | -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 Miedema | 2022-05-02 | 1 | -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 Ogam | 2022-05-02 | 3 | -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 Karroum | 2022-05-02 | 1 | -1/+1 |
| | |||||
* | bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957) | Nikita Sobolev | 2022-05-02 | 2 | -0/+2 |
| | | | Fixes #90705 | ||||
* | importlib docs: Update importlib.abc hierarchy (#31113) | David Gilbertson | 2022-05-02 | 1 | -4/+3 |
| | | | Fixed some inconsistencies in the text about relationships | ||||
* | bpo-46787: Fix `ProcessPoolExecutor exception` memory leak (GH-31408) (#31408) | themylogin | 2022-05-02 | 2 | -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) | larryhastings | 2022-05-02 | 2 | -1/+3 |
| | |||||
* | Fix duplicate word. (GH-92182) | Benjamin Peterson | 2022-05-02 | 1 | -1/+1 |
| | |||||
* | gh-87390: Add __unpacked__ attribute to types.GenericAlias (#92059) | Jelle Zijlstra | 2022-05-02 | 4 | -0/+19 |
| | |||||
* | gh-90765: configparser test: Catch deprecation warning (#91480) | Hugo van Kemenade | 2022-05-02 | 1 | -1/+3 |
| | |||||
* | gh-90213: Speed up right shifts of negative integers (GH-30277) | Mark Dickinson | 2022-05-02 | 3 | -29/+75 |
| | |||||
* | gh-91783: Document security considerations for shutil.unpack_archive (#91844) | Sam Ezeh | 2022-05-02 | 2 | -1/+9 |
| | |||||
* | suggestions.c: Improve efficiency of levenshtein_distance method (#91835) | Pieter Eendebak | 2022-05-02 | 1 | -1/+3 |
| | |||||
* | Fix typo in turtle deprecation warning and use warnings._deprecated (#91862) | Hugo van Kemenade | 2022-05-02 | 1 | -4/+4 |
| | |||||
* | Add weakref_slot to dataclass decorator, to allow instances with slots to be ↵ | Eric V. Smith | 2022-05-02 | 4 | -13/+106 |
| | | | | weakref-able. (#92160) | ||||
* | gh-92082: contextlib docs: Change aclosing from a class to a function for ↵ | Thaddeus1499 | 2022-05-02 | 1 | -1/+1 |
| | | | | | consistency (#92155) Signed-off-by: prwatson <prwatson@redhat.com> | ||||
* | gh-91276: revert the increase of dis output width (GH-92126) | Irit Katriel | 2022-05-02 | 2 | -254/+266 |
| | |||||
* | gh-88546: glob.glob docs: Make new paragraph for emphasis and reordered ↵ | slateny | 2022-05-02 | 1 | -2/+5 |
| | | | | sentence (#91614) |