Ned Deily
f34d181fa1
bpo-45732: Update python.org macOS installer to use Tcl/Tk 8.6.12. (GH-29931)
2021-12-06 02:44:09 -05:00
Alex Waygood
c0521fe49f
bpo-45840: Improve cross-references in the data model documentation (GH-29633)
2021-12-05 22:49:36 +02:00
Serhiy Storchaka
2b318ce1c9
bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298)
2021-12-05 22:44:01 +02:00
Serhiy Storchaka
446be16686
bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)
2021-12-05 22:42:50 +02:00
Serhiy Storchaka
1fd4de5bdd
bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291)
...
For example, InitVar[list[int]].
2021-12-05 22:41:58 +02:00
Serhiy Storchaka
60c320c38e
bpo-37295: Optimize math.comb() and math.perm() (GH-29090)
...
For very large numbers use divide-and-conquer algorithm for getting
benefit of Karatsuba multiplication of large numbers.
Do calculations completely in C unsigned long long instead of Python
integers if possible.
2021-12-05 22:26:10 +02:00
Christian Heimes
628abe4463
bpo-45582: Fix signature of _Py_Get_Getpath_CodeObject (GH-29921)
2021-12-05 18:41:46 +01:00
Guido van Rossum
605f4bf783
Delete orphaned comment ( #29917 )
...
(The function this described was deleted by PR #23743 , the comment was accidentally retained.)
2021-12-05 09:03:58 -08:00
Serhiy Storchaka
d15cdb2f32
bpo-27946: Fix possible crash in ElementTree.Element (GH-29915)
...
Getting an attribute via attrib.get() simultaneously with replacing
the attrib dict can lead to access to deallocated dict.
2021-12-05 14:22:54 +02:00
Serhiy Storchaka
f42a06ba27
bpo-13236: Flush the output stream more often in unittest (GH-29864)
...
It can prevent some losses when output to buffered stream.
2021-12-04 20:57:20 +02:00
Vishal Pandey
87a18deda4
Fixed documentation typo in compileall.py (GH-29912)
2021-12-05 00:38:17 +09:00
Christian Heimes
64be8d369b
bpo-45847: Update whatsnew and add place holder entries for missing extensions (GH-29914)
2021-12-04 15:14:48 +01:00
Christian Heimes
4045392e0e
bpo-45847: Port _ctypes partly to PY_STDLIB_MOD (GH-29747)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-12-04 11:21:43 +01:00
Christian Heimes
cee07b1628
bpo-45695: Test out-of-tree builds on GHA (GH-29904)
2021-12-04 11:07:59 +01:00
Raymond Hettinger
135ecc3492
bpo-20751: Replace method example with attribute example, matching the descriptor howto (GH-29909)
2021-12-03 20:37:08 -06:00
Benjamin Peterson
0ae4e0c959
bpo-45582 Fix prototype of _Py_Get_Getpath_CodeObject. (GH-29907)
...
Automerge-Triggered-By: GH:tiran
2021-12-03 15:21:58 -08:00
neonene
7d7c91a8e8
bpo-45582: Add a NOT operator to the condition in getpath_isxfile (GH-29906)
2021-12-03 22:04:11 +00:00
Irit Katriel
5bb7ef2768
bpo-45607: Make it possible to enrich exception displays via setting their __note__ field (GH-29880)
2021-12-03 22:01:15 +00:00
Crowthebird
d9301703fb
bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)
2021-12-03 19:47:38 +00:00
Irit Katriel
2ff758bd1a
bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before they are stored as StackItem, which should be normalized (GH-29890)
2021-12-03 19:05:14 +00:00
Christian Heimes
84ca1232b0
bpo-45950: Introduce Bootstrap Python again ( #29859 )
...
The build system now uses a :program:`_bootstrap_python` interpreter for
freezing and deepfreezing again. To speed up build process the build tools
:program:`_bootstrap_python` and :program:`_freeze_module` are no longer
build with LTO.
Cross building depends on a build Python interpreter, which must have same
version and bytecode as target host Python.
2021-12-03 16:01:11 +01:00
Christian Heimes
ccb73a0d50
bpo-45582: Fix out-of-tree build issues with new getpath (GH-29902)
2021-12-03 14:47:06 +01:00
Dennis Sweeney
03768c4d13
bpo-45885: Specialize COMPARE_OP (GH-29734)
...
* Add COMPARE_OP_ADAPTIVE adaptive instruction.
* Add COMPARE_OP_FLOAT_JUMP, COMPARE_OP_INT_JUMP and COMPARE_OP_STR_JUMP specialized instructions.
* Introduce and use _PyUnicode_Equal
2021-12-03 11:29:12 +00:00
Steve Dower
99fcf15052
bpo-45582: Port getpath[p].c to Python (GH-29041)
...
The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code.
This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms.
2021-12-03 00:08:42 +00:00
Zachary Ware
9f2f7e4226
bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)
2021-12-02 14:24:25 -06:00
Christian Heimes
a31173c5ce
bpo-40280: Update what's new (GH-29893)
2021-12-02 18:42:56 +01:00
Alex Waygood
b2afdc95cc
bpo-45535: Improve output of Enum ``dir()`` (GH-29316)
...
Modify the ``EnumType.__dir__()`` and ``Enum.__dir__()`` to ensure
that user-defined methods and methods inherited from mixin classes always
show up in the output of `help()`. This change also makes it easier for
IDEs to provide auto-completion.
2021-12-02 08:49:52 -08:00
Christian Heimes
cb8f491f46
bpo-40280: Optimize ints and and startup on wasm (GH-29887)
2021-12-02 12:19:30 +01:00
Victor Stinner
a6c3b0faa1
bpo-45954: Rename PyConfig.no_debug_ranges to code_debug_ranges (GH-29886)
...
Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges and
invert the value.
Document -X no_debug_ranges and PYTHONNODEBUGRANGES env var in
PyConfig.code_debug_ranges documentation.
2021-12-02 11:43:37 +01:00
Christian Heimes
cb2b3c8d35
bpo-40280: Emscripten has no support for subprocesses (GH-29872)
...
Fixes ``platform`` and ``help()`` on emscripten.
Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
2021-12-02 01:17:37 -08:00
Christian Clauss
226d22ff2d
docs: Improve example for urlparse() (GH-29816)
2021-12-02 10:52:32 +02:00
Christian Heimes
309110f37c
bpo-40280: Emscripten with_ensurepip=no, second attempt (GH-29884)
2021-12-01 23:16:27 +01:00
Christian Heimes
9deb83468c
bpo-40280: Emscripten defaults to --with-ensurepip=no (GH-29873)
2021-12-01 20:43:07 +01:00
Weipeng Hong
c2bb29ce9a
bpo-30533: Add docs for `inspect.getmembers_static` ( #29874 )
...
* Add docs for `inspect.getmembers_static`
* update
2021-12-01 11:23:46 -08:00
Eric Snow
ee94aa0850
bpo-45952: Get the C analyzer tool working again. (gh-29882)
...
There wasn't much that needed to be done. Mostly it was just a few new files that got added.
https://bugs.python.org/issue45952
2021-12-01 11:20:20 -07:00
Rob
f27bef3043
bpo-45896: Fix docs default asyncio event loop on Windows (GH-29857)
2021-12-01 14:24:46 +02:00
Mark Shannon
49444fb807
bpo-45753: Interpreter internal tweaks (GH-29575)
...
* Split exit paths into exceptional and non-exceptional.
* Move exit tracing code to individual bytecodes.
* Wrap all trace entry and exit events in macros to make them clearer and easier to enhance.
* Move return sequence into RETURN_VALUE, YIELD_VALUE and YIELD_FROM. Distinguish between normal trace events and dtrace events.
2021-12-01 12:09:36 +00:00
Raymond Hettinger
0aa0bd0563
bpo-45876: Have stdev() also use decimal specific square root. (GH-29869)
2021-11-30 19:25:57 -06:00
Raymond Hettinger
a39f46afde
bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (GH-29828)
2021-11-30 18:20:08 -06:00
Irit Katriel
8a45ca542a
bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (GH-29780)
2021-11-30 22:37:04 +00:00
Weipeng Hong
af8c8caaf5
bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. ( #20911 )
...
* Add function inspect.getmembers_static that does not call properties or dynamic
properties.
* update _getmembers args
* Update Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
* Update Lib/inspect.py
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
* Removes the copy pasted doc string
Co-authored-by: Itamar Ostricher <itamarost@gmail.com>
Co-authored-by: Dino Viehland <dinoviehland@gmail.com>
2021-11-30 10:23:13 -08:00
Victor Stinner
4b97d974ec
bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866)
...
The following internal macros can not longer be used as l-value:
* asdl_seq_GET()
* asdl_seq_GET_UNTYPED()
* asdl_seq_LEN()
They are modified to use the _Py_RVALUE() macro.
2021-11-30 15:13:55 +01:00
Victor Stinner
c19c3a0961
bpo-45476: Add _Py_RVALUE() macro (GH-29860)
...
Add a new _Py_RVALUE() macro to prevent using an expression as an
l-value.
Replace a "(void)" cast with the _Py_RVALUE() macro in the following
macros:
* PyCell_SET()
* PyList_SET_ITEM()
* PyTuple_SET_ITEM()
* _PyGCHead_SET_FINALIZED()
* _PyGCHead_SET_NEXT()
* asdl_seq_SET()
* asdl_seq_SET_UNTYPED()
Add also parentheses around macro arguments in PyCell_SET() and
PyTuple_SET_ITEM() macros.
2021-11-30 12:14:45 +01:00
Vishal Pandey
f97ec09baf
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801)
2021-11-30 11:01:44 +00:00
Inada Naoki
9a5dec4e97
Fix EncodingWarning in Tools/freeze/test/freeze.py (GH-29742)
2021-11-30 13:16:40 +09:00
Adrian Garcia Badaracco
bd9342ddde
no-issue: remove unused import from test_graphlib.py (GH-29853)
2021-11-30 11:27:37 +09:00
David Federman
734ed35383
bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (GH-29854)
2021-11-29 22:40:34 +00:00
Kumar Aditya
02b5ac6091
bpo-45653: fix test_embed on windows (GH-29814)
2021-11-29 12:27:34 -08:00
Gideon
6266e4af87
bpo-45917: Add math.exp2() method - return 2 raised to the power of x (GH-29829)
...
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-11-29 18:55:43 +00:00
andrei kulakov
c1f93f0d37
bpo-43905: Expand dataclasses.astuple() and asdict() docs (GH-26154)
...
Expanded ``astuple()`` docs, warning about deepcopy being applied
and providing a workaround.
Automerge-Triggered-By: GH:ericvsmith
2021-11-29 10:10:32 -08:00