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
Vinay Sajip
4141d94fa6
bpo-44391: Remove unused argument from a varargs call. (GH-29843)
2021-11-29 17:26:50 +00:00
Christian Heimes
992565f7f7
bpo-45881: configure --with-freeze-module --with-build-python (GH-29835)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Ethan Smith <ethan@ethanhs.me>
2021-11-29 17:23:29 +01:00
Christian Heimes
b394af13f6
bpo-45847: PY_STDLIB_MOD_SIMPLE now checks py_stdlib_not_available (GH-29844)
2021-11-29 16:34:16 +01:00
Erlend Egeberg Aasland
c4a69a4ad0
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
2021-11-29 15:22:32 +00:00
Christian Heimes
6ac3c8a314
bpo-40280: Emscripten systems use .wasm suffix by default (GH-29842)
2021-11-29 16:01:55 +01:00
Erlend Egeberg Aasland
c1dec9540a
bpo-45723: Sort the grand AC_CHECK_HEADERS check (GH-29846)
...
Automerge-Triggered-By: GH:tiran
2021-11-29 06:41:11 -08:00
Erlend Egeberg Aasland
f7a62f2405
bpo-45847: Make socket module conditional (GH-29769)
2021-11-29 14:57:36 +01:00
Vinay Sajip
39b60ceae8
[Doc] Add info to logging cookbook about running logging socket listeners i… (GH-29838)
2021-11-29 13:06:52 +00:00
Mark Shannon
60929576e4
bpo-45786: Allocate space for frame in frame object. (GH-29729)
2021-11-29 12:34:59 +00:00
Jakub Kulík
7431448b81
bpo-43498: Fix dictionary iteration error in _ExecutorManagerThread (GH-24868)
2021-11-29 14:02:56 +02:00
Erlend Egeberg Aasland
b3f443a35e
bpo-40280: Disable unusable core extension modules on emscripten (GH-29834)
...
Co-authored-by: Christian Heimes <christian@python.org>
2021-11-29 12:39:14 +01:00
Christian Heimes
4dc198dedd
bpo-45847: Fix _multiprocessing on platforms without sem_open (GH-29833)
2021-11-29 10:36:10 +01:00
Serhiy Storchaka
87d5180b7a
Remove misleading comment in the AST optimizer ( #29825 )
2021-11-29 11:19:59 +03:00
Sam Bull
934a826237
bpo-37658: Actually return result in race condition (GH-29202)
2021-11-29 10:12:57 +02:00
Christian Heimes
f87ea03502
bpo-45915: use fcntl(fd, F_GETFD) in is_valid_fd() (GH-29821)
2021-11-28 19:40:27 +01:00
Erlend Egeberg Aasland
aaf42222cf
bpo-45847: Port _multiprocessing to PY_STDLIB_MOD (GH-29768)
2021-11-28 13:00:51 +01:00
180909
46c8d91571
bpo-19460: Add test for MIMENonMultipart (GH-29817)
2021-11-28 11:24:41 +02:00
Irit Katriel
4dfae6f38e
bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726)
2021-11-27 22:00:10 +00:00
Pablo Galindo Salgado
e71c12efcd
bpo-42268: Fail the configure step if the selected compiler doesn't support memory sanitizer (GH-29806)
2021-11-27 18:04:06 +00:00
Raymond Hettinger
af9ee57b96
bpo-45876: Improve accuracy for stdev() and pstdev() in statistics (GH-29736)
...
* Inlined code from variance functions
* Added helper functions for the float square root of a fraction
* Call helper functions
* Add blurb
* Fix over-specified test
* Add a test for the _sqrt_frac() helper function
* Increase the tested range
* Add type hints to the internal function.
* Fix test for correct rounding
* Simplify ⌊√(n/m)⌋ calculation
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
* Add comment and beef-up tests
* Test for zero denominator
* Add algorithmic references
* Add test for the _isqrt_frac_rto() helper function.
* Compute the 109 instead of hard-wiring it
* Stronger test for _isqrt_frac_rto()
* Bigger range
* Bigger range
* Replace float() call with int/int division to be parallel with the other code path.
* Factor out division. Update proof link. Remove internal type declaration
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-11-26 22:54:50 -07:00
Steve Dower
db55f3faba
bpo-44530: Reverts a change to the 'code.__new__' audit event (GH-29809)
2021-11-27 00:26:45 +00:00
Ma Lin
7edb6270a7
bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587)
...
* Fix thread lock in zlib.Decompress.flush() may go wrong
Getting `.unconsumed_tail` before acquiring the thread lock may mix up decompress state.
2021-11-26 16:18:17 -08:00
Steve Dower
4841e694ee
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)
2021-11-26 23:08:20 +00:00
Guido van Rossum
94daf39b2f
Fix markup buglet in Doc/howto/annotations.rst ( #29802 )
2021-11-26 14:10:01 -08:00
Victor Stinner
9a7611a7c4
bpo-45866: Fix typo in the NEWS entry (GH-29798)
2021-11-26 22:56:25 +01:00
Christian Heimes
4ebde73b8e
bpo-40280: Move hard-coded feature checks to configure (GH-29789)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
2021-11-26 19:36:48 +01:00
Kumar Aditya
b0b10e146b
bpo-45019: Cleanup module freezing and deepfreeze ( #29772 )
2021-11-26 08:50:54 -08:00
Christian Heimes
765b2a3ad2
bpo-45886: Fix OOT build when srcdir has frozen module headers (GH-29793)
...
The presence of frozen module headers in srcdir interfers with OOT
build. Make considers headers in srcdir up to date, but later builds do
not use VPATH to locate files. make clean now removes the headers, too.
Also remove stale ``_bootstrap_python`` from .gitignore.
2021-11-26 17:05:16 +01:00
Christian Heimes
8caceb7a47
bpo-40280: Add configure check for socket shutdown (GH-29795)
2021-11-26 15:16:54 +01:00