summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-92135: Fix _Py_reinterpret_cast() for const (#92138)Victor Stinner2022-05-025-14/+62
| | | | | | | | | | Fix C++ compiler warnings on cast macros, like _PyObject_CAST(), when casting a constant expression to a non constant type: use const_cast<> in C++. * In C++, Py_SAFE_DOWNCAST() now uses static_cast<> rather than reinterpret_cast<>. * Add tests to the _testcppext C++ extension. * test_cppext no longer captures stdout in verbose mode.
* concurrent.futures: Fix typo in docstring (#92121)Yiannis Hadjicharalambous2022-05-021-1/+1
|
* bpo-46907: Update Windows installer to SQLite 3.38.3. (GH-91995)Mariusz Felisiak2022-05-025-4/+5
|
* asyncio.subprocess: Fix a typo in doc (#92030)Harsh2022-05-021-1/+1
| | | Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance
* Fix typo in Programming FAQ (#92083)Matt Harding2022-05-021-1/+1
| | | I believe the word "with" was missing here.
* gh-85133: os docs: Add that getenv uses os.environ (#91874)slateny2022-05-021-13/+21
| | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-84714: Add behavior if dst file exists (#91867)slateny2022-05-021-1/+2
|
* gh-89301: Fix regression with bound values in traced SQLite statements (#92053)Erlend Egeberg Aasland2022-05-023-15/+104
|
* gh-88097: doc: fix link to Py_Version (#92141)Victor Stinner2022-05-021-1/+1
|
* gh-91321: Add _testcppext C++ extension (#32175)Victor Stinner2022-05-022-0/+141
| | | | | | | Build a basic C++ test extension to check that the Python C API is compatible with C++ and does not emit C++ compiler warnings. * Add Modules/_testcppext.cpp: C++ extension * Add Lib/test/test_cppext.py: test building the C++ extension.
* bpo-36819: Fix crashes in built-in encoders with weird error handlers (GH-28593)Serhiy Storchaka2022-05-024-32/+222
| | | | | | | If the error handler returns position less or equal than the starting position of non-encodable characters, most of built-in encoders didn't properly re-size the output buffer. This led to out-of-bounds writes, and segfaults.
* gh-85679: Recommend `encoding="utf-8"` in tutorial (GH-91778)Inada Naoki2022-05-021-10/+18
|
* gh-90822: Make `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` constant expression ↵Ganesh Kathiresan2022-05-022-5/+8
| | | | (GH-92071)
* gh-92114: Improve error message for types with __class_getitem__ = None ↵Serhiy Storchaka2022-05-023-1/+12
| | | | (GH-92115)
* gh-91998: 'WebAssemby' to 'WebAssembly' (#92040)vainaijr2022-05-021-2/+2
|
* build(deps): bump actions/stale from 4 to 5 (#92108)dependabot[bot]2022-05-011-1/+1
| | | | | | | | | | | | | | | | | Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/github-script from 5 to 6 (#92109)dependabot[bot]2022-05-011-1/+1
| | | | | | | | | | | | | | | | Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/setup-node from 2 to 3 (#92110)dependabot[bot]2022-05-011-1/+1
| | | | | | | | | | | | | | | | Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/cache from 3.0.1 to 3.0.2 (#92111)dependabot[bot]2022-05-011-3/+3
| | | | | | | | | | | | | | | | | Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* bpo-39716: Raise on conflicting subparser names. (GH-18605)Antony Lee2022-05-013-0/+23
| | | | | | | | | | | Raise an ArgumentError when the same subparser name is added twice to an ArgumentParser. This is consistent with the (default) behavior when the same option string is added twice to an ArgumentParser. (Support for `conflict_handler="resolve"` could be considered as a followup feature, although real use cases seem even rarer than "resolve"ing option-strings.) Automerge-Triggered-By: GH:rhettinger
* typing docs: Add example for async functions (#20386)Sam Bull2022-05-011-0/+4
| | | Fixes python/typing#424
* gh-81488: Add recursive wording for issubclass docs (#92087)slateny2022-05-011-1/+2
|
* gh-91952: Make TextIOWrapper.reconfigure() supports "locale" encoding (GH-91982)Inada Naoki2022-05-014-2/+16
|
* gh-91954: Use shell=True in test_subprocess.test_encoding_warning (GH-92090)Dennis Sweeney2022-05-011-6/+5
|
* Improving readability of argparse.rst (GH-91751)Antonio Andrade2022-04-301-8/+8
| | | | | | Fixed few typos and enhanced few paragraphs for your review and consideration. Trivial contribution towards continuous improvement, so no issue was raised. Automerge-Triggered-By: GH:rhettinger
* gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)slateny2022-04-301-0/+6
| | | | | | | #89253 [`pairwise()`](https://docs.python.org/3/library/itertools.html#itertools.pairwise) already has the 'new in python3.10' Automerge-Triggered-By: GH:rhettinger
* gh-85757: Change wording from nested to inner (GH-91811)slateny2022-04-301-1/+1
| | | | | | | | | #85757 https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant Automerge-Triggered-By: GH:rhettinger
* Fix typo in asyncio-extending.rst (#91609)Yurii Karabas2022-04-301-1/+1
|
* gh-91611: Use example.com for documentation, not mydomain.com (#91613)Motoki Naruse2022-04-302-2/+2
| | | | | | | example.com is reserved by the IANA as special-use domain name for documentation purposes. The domain names are used widely in books, tutorials, sample network configurations, and generally as examples for the use of domain name. On the other hand, mydomain.com is real Domain Name Registration service.
* gh-87801: Add run() to subprocess.CalledProcessError description (#91628)slateny2022-04-301-1/+3
|
* gh-87192: Update wording for fcntl 'Changed in' (#91658)slateny2022-04-301-1/+2
|
* Convert :issue: to :gh: in whatsnew (GH-92089)Dennis Sweeney2022-04-301-1/+1
|
* gh-92063: Enforce types in specialized PRECALL opcodes (GH-92068)Dennis Sweeney2022-04-303-16/+56
| | | | | | | | | * Check the types of PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS as well * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_O * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST
* gh-85864: io docs: Add missing position-only parameters (#91950)slateny2022-04-301-17/+17
|
* gh-92019: Make sqlite3.Blob indexing conform with the norm (#92020)Erlend Egeberg Aasland2022-04-303-42/+75
| | | | | | - get index now returns an int - set index now requires an int in range(0, 256) Resolves #92019
* bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)Serhiy Storchaka2022-04-306-6/+36
| | | | | It was raised if the charset itself contains characters not encodable in UTF-8 (in particular \udcxx characters representing non-decodable bytes in the source).
* gh-81548: Deprecate octal escape sequences with value larger than 0o377 ↵Serhiy Storchaka2022-04-308-18/+139
| | | | (GH-91668)
* gh-91583: AC: Fix regression for functions with defining_class (GH-91739)Serhiy Storchaka2022-04-3019-449/+820
| | | | | Argument Clinic now generates the same efficient code as before adding the defining_class parameter.
* gh-91760: Deprecate group names and numbers which will be invalid in future ↵Serhiy Storchaka2022-04-305-7/+112
| | | | | | | | (GH-91794) Only sequence of ASCII digits will be accepted as a numerical reference. The group name in bytes patterns and replacement strings could only contain ASCII letters and digits and underscore.
* gh-92049: Forbid pickling constants re._constants.SUCCESS etc (GH-92070)Serhiy Storchaka2022-04-302-0/+4
| | | Previously, pickling did not fail, but the result could not be unpickled.
* gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977)Inada Naoki2022-04-305-14/+65
| | | locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning
* gh-91880 - fix typo (GH-92069)David Hewitt2022-04-301-1/+1
| | | | | https://github.com/python/cpython/issues/91880#issuecomment-1113914241 - With thanks to @MojoVampire for spotting this. Automerge-Triggered-By: GH:gvanrossum
* bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-31828)Serhiy Storchaka2022-04-305-41/+152
| | | | Co-authored-by: Matthew Rahtz <mrahtz@gmail.com>
* gh-92064: Fix global variable name collision in test_typing (#92067)Dennis Sweeney2022-04-301-13/+13
| | | Fixes #92064
* Rephrase typing.assert_never docs (#92061)Shantanu2022-04-301-2/+2
| | | This change is similar to that in #32069
* gh-91491: Add several typing features to What's New (#92060)Shantanu2022-04-301-0/+65
| | | | | | | This gets all the major items in #91491. However, I didn't get around to adding what's new entries for the large clump of changes in the last bullet point in the issue. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-91217: deprecate xdrlib (GH-92066)Brett Cannon2022-04-304-1/+8
| | | Automerge-Triggered-By: GH:brettcannon
* Fix indentation for typing.Unpack docs (#92058)Jelle Zijlstra2022-04-291-21/+21
| | | https://docs.python.org/3.11/library/typing.html#typing.Unpack
* sorting howto: Add clarification on < using __lt__ (#92010)slateny2022-04-291-1/+4
|
* bpo-44791: Accept ellipsis as the last argument of typing.Concatenate (#30969)Serhiy Storchaka2022-04-294-14/+9
|