slateny
b9ab6cea08
gh-88546: glob.glob docs: Make new paragraph for emphasis and reordered sentence ( #91614 )
2022-05-02 09:11:05 -06:00
Alex Waygood
ab616d323d
gh-92128: Add `__class_getitem__` to `logging.LoggerAdapter` and `logging.StreamHandler` ( #92129 )
...
Closes #92128
2022-05-02 09:10:02 -06:00
Victor Stinner
031397063e
gh-92135: Fix _Py_reinterpret_cast() for const ( #92138 )
...
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.
2022-05-02 17:07:00 +02:00
Yiannis Hadjicharalambous
b11243e85e
concurrent.futures: Fix typo in docstring ( #92121 )
2022-05-02 09:05:26 -06:00
Mariusz Felisiak
e6040604b3
bpo-46907: Update Windows installer to SQLite 3.38.3. (GH-91995)
2022-05-02 16:02:54 +01:00
Harsh
bb857a96ef
asyncio.subprocess: Fix a typo in doc ( #92030 )
...
Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance
2022-05-02 09:01:52 -06:00
Matt Harding
2a7efa3242
Fix typo in Programming FAQ ( #92083 )
...
I believe the word "with" was missing here.
2022-05-02 09:01:03 -06:00
slateny
b25352a5c0
gh-85133: os docs: Add that getenv uses os.environ ( #91874 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-02 08:43:32 -06:00
slateny
9166ace805
gh-84714: Add behavior if dst file exists ( #91867 )
2022-05-02 08:31:55 -06:00
Erlend Egeberg Aasland
721aa96540
gh-89301: Fix regression with bound values in traced SQLite statements ( #92053 )
2022-05-02 08:14:35 -06:00
Victor Stinner
6811bdef63
gh-88097: doc: fix link to Py_Version ( #92141 )
2022-05-02 15:29:22 +02:00
Victor Stinner
79886e7b62
gh-91321: Add _testcppext C++ extension ( #32175 )
...
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.
2022-05-02 14:09:22 +02:00
Serhiy Storchaka
18b07d773e
bpo-36819: Fix crashes in built-in encoders with weird error handlers (GH-28593)
...
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.
2022-05-02 12:37:48 +03:00
Inada Naoki
614420df97
gh-85679: Recommend `encoding="utf-8"` in tutorial (GH-91778)
2022-05-02 17:25:05 +09:00
Ganesh Kathiresan
d414f7ece8
gh-90822: Make `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` constant expression (GH-92071)
2022-05-02 17:23:28 +09:00
Serhiy Storchaka
4d10f703d7
gh-92114: Improve error message for types with __class_getitem__ = None (GH-92115)
2022-05-02 08:29:49 +03:00
vainaijr
ed711290a0
gh-91998: 'WebAssemby' to 'WebAssembly' ( #92040 )
2022-05-01 20:24:41 -05:00
dependabot[bot]
34129f7c42
build(deps): bump actions/stale from 4 to 5 ( #92108 )
...
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>
2022-05-01 14:53:15 -06:00
dependabot[bot]
51f69461a5
build(deps): bump actions/github-script from 5 to 6 ( #92109 )
...
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>
2022-05-01 14:52:21 -06:00
dependabot[bot]
0d4fdb665e
build(deps): bump actions/setup-node from 2 to 3 ( #92110 )
...
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>
2022-05-01 14:39:53 -06:00
dependabot[bot]
eefe6911f4
build(deps): bump actions/cache from 3.0.1 to 3.0.2 ( #92111 )
...
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>
2022-05-01 14:37:52 -06:00
Antony Lee
ad5e8520f3
bpo-39716: Raise on conflicting subparser names. (GH-18605)
...
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
2022-04-30 23:04:50 -07:00
Sam Bull
9588f880a2
typing docs: Add example for async functions ( #20386 )
...
Fixes python/typing#424
2022-04-30 22:40:27 -06:00
slateny
1066ecb970
gh-81488: Add recursive wording for issubclass docs ( #92087 )
2022-04-30 22:05:20 -06:00
Inada Naoki
0729b31a8b
gh-91952: Make TextIOWrapper.reconfigure() supports "locale" encoding (GH-91982)
2022-05-01 10:44:14 +09:00
Dennis Sweeney
b9636180b3
gh-91954: Use shell=True in test_subprocess.test_encoding_warning (GH-92090)
2022-04-30 20:38:19 -04:00
Antonio Andrade
238aa6253b
Improving readability of argparse.rst (GH-91751)
...
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
2022-04-30 15:20:10 -07:00
slateny
5dcfb916c7
gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)
...
#89253
[`pairwise()`](https://docs.python.org/3/library/itertools.html#itertools.pairwise ) already has the 'new in python3.10'
Automerge-Triggered-By: GH:rhettinger
2022-04-30 15:14:38 -07:00
slateny
efb87b1090
gh-85757: Change wording from nested to inner (GH-91811)
...
#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
2022-04-30 15:12:33 -07:00
Yurii Karabas
2b97d7f6df
Fix typo in asyncio-extending.rst ( #91609 )
2022-04-30 16:09:48 -06:00
Motoki Naruse
ea39246782
gh-91611: Use example.com for documentation, not mydomain.com ( #91613 )
...
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.
2022-04-30 15:52:13 -06:00
slateny
567be058b4
gh-87801: Add run() to subprocess.CalledProcessError description ( #91628 )
2022-04-30 15:32:00 -06:00
slateny
d7eb1ffbe8
gh-87192: Update wording for fcntl 'Changed in' ( #91658 )
2022-04-30 15:24:01 -06:00
Dennis Sweeney
b660d0931e
Convert :issue: to :gh: in whatsnew (GH-92089)
2022-04-30 15:53:59 -04:00
Dennis Sweeney
868b1afa05
gh-92063: Enforce types in specialized PRECALL opcodes (GH-92068)
...
* 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
2022-04-30 12:35:33 -06:00
slateny
3a8e2b6e65
gh-85864: io docs: Add missing position-only parameters ( #91950 )
2022-04-30 09:22:33 -06:00
Erlend Egeberg Aasland
9ea9078ec7
gh-92019: Make sqlite3.Blob indexing conform with the norm ( #92020 )
...
- get index now returns an int
- set index now requires an int in range(0, 256)
Resolves #92019
2022-04-30 09:01:37 -06:00
Serhiy Storchaka
e91dee87ed
bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)
...
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).
2022-04-30 13:17:23 +03:00
Serhiy Storchaka
3483299a24
gh-81548: Deprecate octal escape sequences with value larger than 0o377 (GH-91668)
2022-04-30 13:16:27 +03:00
Serhiy Storchaka
a055dac0b4
gh-91583: AC: Fix regression for functions with defining_class (GH-91739)
...
Argument Clinic now generates the same efficient code as before
adding the defining_class parameter.
2022-04-30 13:15:02 +03:00
Serhiy Storchaka
19dca04121
gh-91760: Deprecate group names and numbers which will be invalid in future (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.
2022-04-30 13:13:46 +03:00
Serhiy Storchaka
6d0d547033
gh-92049: Forbid pickling constants re._constants.SUCCESS etc (GH-92070)
...
Previously, pickling did not fail, but the result could not be unpickled.
2022-04-30 13:03:23 +03:00
Inada Naoki
354ace8b07
gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977)
...
locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning
2022-04-30 15:53:29 +09:00
David Hewitt
c7b7f12b86
gh-91880 - fix typo (GH-92069)
...
https://github.com/python/cpython/issues/91880#issuecomment-1113914241 - With thanks to @MojoVampire for spotting this.
Automerge-Triggered-By: GH:gvanrossum
2022-04-29 22:23:54 -07:00
Serhiy Storchaka
e8c2f72b94
bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-31828)
...
Co-authored-by: Matthew Rahtz <mrahtz@gmail.com>
2022-04-30 08:22:46 +03:00
Dennis Sweeney
a29aa76a3f
gh-92064: Fix global variable name collision in test_typing ( #92067 )
...
Fixes #92064
2022-04-29 21:18:38 -06:00
Shantanu
2f7952c35b
Rephrase typing.assert_never docs ( #92061 )
...
This change is similar to that in #32069
2022-04-29 21:13:21 -06:00
Shantanu
d0064a1e72
gh-91491: Add several typing features to What's New ( #92060 )
...
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>
2022-04-29 21:12:45 -06:00
Brett Cannon
c2b579741d
gh-91217: deprecate xdrlib (GH-92066)
...
Automerge-Triggered-By: GH:brettcannon
2022-04-29 18:22:10 -07:00
Jelle Zijlstra
7861a9e327
Fix indentation for typing.Unpack docs ( #92058 )
...
https://docs.python.org/3.11/library/typing.html#typing.Unpack
2022-04-29 16:58:40 -06:00