Mark Shannon
ae3adbeaed
Add (undocumented) _co_quickened attribute for code object. (GH-31552)
2022-02-24 12:10:53 +00:00
Tin Tvrtković
7fce1063b6
bpo-46771: Implement task cancel requests counter (GH-31513)
...
This changes cancelling() and uncancel() to return the count of pending cancellations.
This can be used to avoid bugs in certain edge cases (e.g. two timeouts going off at the same time).
2022-02-23 18:17:00 -08:00
dependabot[bot]
6e117e75c3
build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.1 (GH-30325)
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2.2.4 to 2.3.1.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.4...v2.3.1 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 23:16:47 +02:00
Victor Stinner
8a716bc62c
bpo-40421: What's New in Python 3.11: PyFrameObject.f_lasti (GH-31536)
...
Suggest replacing PyCode_Addr2Line() with PyFrame_GetLineNumber().
2022-02-23 20:20:03 +01:00
Brandt Bucher
281ea9c391
bpo-44337: Shrink the LOAD_ATTR/STORE_ATTR caches (GH-31517)
2022-02-23 10:53:24 -08:00
Victor Stinner
78859e58e4
bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)
...
Fix PyFrame_GetBack() and PyFrame_GetCode() return type in
the documentation.
2022-02-23 19:49:21 +01:00
Dong-hee Na
0bb40a42d7
closes bpo-46736: SimpleHTTPRequestHandler now uses HTML5. (GH-31533)
...
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
2022-02-23 09:59:32 -08:00
Victor Stinner
9bbdde2180
bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171)
...
Remove the HAVE_PY_SET_53BIT_PRECISION macro (moved to the internal
C API).
* Move HAVE_PY_SET_53BIT_PRECISION macro to pycore_pymath.h.
* Replace PY_NO_SHORT_FLOAT_REPR macro with _PY_SHORT_FLOAT_REPR
macro which is always defined. gcc -Wundef emits a warning when
using _PY_SHORT_FLOAT_REPR but the macro is not defined, if
pycore_pymath.h include was forgotten.
2022-02-23 18:16:23 +01:00
Brandt Bucher
375a56bd40
bpo-45885: Don't un-adapt `COMPARE_OP` when collecting stats (GH-31516)
2022-02-23 11:06:25 +00:00
Brandt Bucher
424023efee
bpo-46329: Fix test failure when `Py_STATS` is enabled (GH-31511)
2022-02-23 11:00:28 +00:00
Eric V. Smith
288af845a3
bpo-46757: Add a test to verify dataclass's __post_init__ isn't being automatically added. (GH-31523)
2022-02-23 00:14:35 -05:00
Jelle Zijlstra
43cf44ddcc
Minor fixes to C API docs (GH-31501)
...
* C API docs: move PyErr_SetImportErrorSubclass docs
It was in the section about warnings, but it makes more sense to
put it with PyErr_SetImportError.
* C API docs: document closeit argument to PyRun_AnyFileExFlags
It was already documented for PyRun_SimpleFileExFlags.
* textual fixes to unicode docs
* Move paragraph about tp_dealloc into tp_dealloc section
* __aiter__ returns an async iterator, not an awaitable
2022-02-22 20:34:17 -08:00
Dong-hee Na
1935e1cc28
bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)
2022-02-23 10:40:30 +09:00
Thomas Grainger
9b12b1b803
bpo-46522: fix concurrent.futures and io AttributeError messages (GH-30887)
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2022-02-23 02:25:00 +02:00
Eric Snow
1f455361ec
bpo-46765: Replace Locally Cached Strings with Statically Initialized Objects (gh-31366)
...
https://bugs.python.org/issue46765
2022-02-22 17:23:51 -07:00
Andrew Svetlov
cff4d5c5d2
Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ( #31512 )
2022-02-23 01:39:24 +02:00
Victor Stinner
66b3cd7063
bpo-45459: Rename buffer.h to pybuffer.h ( #31201 )
...
Rename Include/buffer.h header file to Include/pybuffer.h to avoid
conflicts with projects having an existing "buffer.h" header file.
* Incude pybuffer.h before object.h in Python.h.
* Remove #include "buffer.h" from Include/cpython/object.h.
* Add a forward declaration of the PyObject type in pybuffer.h to fix
an inter-dependency issue.
2022-02-22 23:11:48 +01:00
Victor Stinner
b899126094
bpo-46659: Deprecate locale.getdefaultlocale() (GH-31206)
...
The locale.getdefaultlocale() function is deprecated and will be
removed in Python 3.13. Use locale.setlocale(),
locale.getpreferredencoding(False) and locale.getlocale() functions
instead.
2022-02-22 22:06:43 +01:00
Victor Stinner
ccbe8045fa
bpo-46659: Fix the MBCS codec alias on Windows (GH-31218)
2022-02-22 22:04:07 +01:00
Thomas Grainger
8fb94893e4
bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)
...
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2022-02-22 22:35:57 +02:00
Irit Katriel
38b5acf867
bpo-46729: add number of sub-exceptions in str() of BaseExceptionGroup (GH-31294)
2022-02-22 18:28:58 +00:00
vidhya
bba8008f99
bpo-20923 : [doc] Explain ConfigParser 'valid section name' and .SECTCRE (GH-31413)
2022-02-22 18:06:41 +00:00
slateny
9a0d941df4
bpo-36557: Updated wording for using/windows (GH-31457)
2022-02-22 17:36:13 +00:00
Pablo Galindo Salgado
7fb94fd7a8
bpo-46725: Document starred expressions in for statements (GH-31481)
...
Automerge-Triggered-By: GH:pablogsal
2022-02-22 09:26:46 -08:00
Mark Shannon
09487c11a5
Fix reporting of specialization stats. (GH-31503)
2022-02-22 17:18:10 +00:00
Steve Dower
77f31a91d5
bpo-46822: Increase timeout for test_create_server_ssl_over_ssl to match underlying timeouts (GH-31502)
2022-02-22 16:25:05 +00:00
Mark Shannon
1320d56ff7
Remove pair-counts from specialization stats. (GH-31500)
2022-02-22 15:44:31 +00:00
Mark Shannon
9058a35558
Move call specializations from CALL to PRECALL. (GH-31496)
2022-02-22 14:57:01 +00:00
Inada Naoki
1e344684d8
dict: Add dk_log2_index_bytes (GH-31439)
2022-02-22 11:03:15 +00:00
Serhiy Storchaka
090e5c4b94
bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" (GH-31479)
...
Fix parsing a numeric literal immediately (without spaces) followed by
"not in" keywords, like in "1not in x". Now the parser only emits
a warning, not a syntax error.
2022-02-22 09:51:51 +02:00
Inada Naoki
74127b89a8
bpo-46606: Reduce stack usage of getgroups and setgroups (GH-31073)
...
NGROUPS_MAX was 32 before Linux 2.6.4 but 65536 since Linux 2.6.4.
2022-02-22 11:59:27 +09:00
Andrew Svetlov
4140bcb1cd
bpo-45390: Propagate CancelledError's message from cancelled task to its awaiter (GH-31383)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-02-21 22:59:04 +02:00
Mark Shannon
59585d6b2e
bpo-46329: Streamline calling sequence a bit. (GH-31465)
...
* Move handling of bound-methods to PRECALL.
* Remove call_shape.postcall_shrink
* Remove call_shape.callable
* Remove call_shape.callable. Change CALL oparg to match PRECALL oparg.
* Move KW_NAMES before PRECALL.
* Update opcode docs in dis.rst
2022-02-21 18:26:47 +00:00
Jelle Zijlstra
0a222db2bc
fix __bool__ docstring (GH-31301)
2022-02-21 07:42:27 -08:00
Sebastian Pipping
2cae93832f
bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453)
...
Curly brackets were never allowed in namespace URIs
according to RFC 3986, and so-called namespace-validating
XML parsers have the right to reject them a invalid URIs.
libexpat >=2.4.5 has become strcter in that regard due to
related security issues; with ET.XML instantiating a
namespace-aware parser under the hood, this test has no
future in CPython.
References:
- https://datatracker.ietf.org/doc/html/rfc3968
- https://www.w3.org/TR/xml-names/
Also, test_minidom.py: Support Expat >=2.4.5
2022-02-21 15:48:32 +01:00
Dong-hee Na
2b86616456
bpo-46541: Remove usage of _Py_IDENTIFIER from pyexpat (GH-31468)
2022-02-21 23:46:52 +09:00
Serhiy Storchaka
195a46d6ff
bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)
2022-02-21 13:25:52 +02:00
Christian Heimes
be095f6c32
bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)
2022-02-20 21:42:31 +01:00
Lital Natan
b77158b4da
bpo-39327: Close file descriptors as soon as possible in shutil.rmtree (GH-31384)
...
It fixes the "Text File Busy" OSError when using 'rmtree' on a
windows-managed filesystem in via the VirtualBox shared folder
(and possible other scenarios like a windows-managed network file
system).
2022-02-20 18:02:10 +02:00
Josh Smith
a3fcca4af1
replace `self` param with more appropriate `cls` in classmethods (GH-31402)
2022-02-20 14:31:09 +02:00
Andrew Svetlov
1f9d4c93af
Raise TypeError if SSLSocket is passed to asyncio transport-based methods (GH-31442)
2022-02-20 14:17:15 +02:00
Nikita Sobolev
4ab8167b9c
bpo-46672: fix `NameError` in `asyncio.gather` if type check fails (GH-31187)
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-02-20 12:24:00 +02:00
Andrew Svetlov
e7130c2e8c
bpo-46752: Uniform TaskGroup.__repr__ (GH-31409)
2022-02-20 12:07:00 +02:00
Raymond Hettinger
12a2e41e8a
Improve discussion about how __getattr__ is invoked. (GH-31435)
2022-02-19 23:02:30 -06:00
Jelle Zijlstra
0a8a8e7454
bpo-46066: Check DeprecationWarning in test_typing (GH-31428)
2022-02-19 17:44:51 -08:00
Dennis Sweeney
7a4791e036
Use raw string to avoid deprecation warning (GH-31427)
2022-02-19 00:57:36 -05:00
Inada Naoki
5543d9c559
dict: Use DK_LOG_SIZE in hot loop. (GH-31405)
...
DK_LOG_SIZE(key) < 8 is faster than DK_SIZE(key) <= 0xff, at least on GCC.
2022-02-19 13:15:20 +09:00
Charles Brunet
99331fcf17
Counter doc mentions three methods, but lists four (GH-30706)
...
Was probably caused by the addition of the `total()` method
2022-02-18 18:23:53 -08:00
Nikita Sobolev
32e3e0bea6
bpo-46685: improve test coverage of `Self` and `Never` in `typing` (GH-31222)
2022-02-18 17:56:30 -08:00
Nikita Sobolev
25c0b9d243
bpo-46603: improve coverage of `typing._strip_annotations` (GH-31063)
2022-02-18 17:54:01 -08:00