Łukasz Langa
a2a3f2c541
gh-84753: Clarify change made to `inspect` functions ( #94554 )
2022-07-05 13:14:19 +01:00
Victor Stinner
92bcb26d00
gh-94379: Remove zipimport find_loader() and find_module() methods ( #94380 )
...
zipimport: Remove find_loader() and find_module() methods, deprecated
in Python 3.10: use the find_spec() method instead. See PEP 451 for
the rationale.
2022-07-05 12:11:42 +02:00
Ned Batchelder
3440d197a5
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
...
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
2022-07-05 11:16:10 +02:00
Erlend Egeberg Aasland
2b8ed4d3d4
gh-94538: Fix Argument Clinic output to custom file ( #94539 )
2022-07-05 11:06:04 +02:00
KotlinIsland
4791a8a835
gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628)
...
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2022-07-05 10:46:39 +02:00
Christian Heimes
7bd67d1d88
gh-93939: Add script to check extension modules ( #94545 )
...
Add script ``Tools/scripts/check_modules.py`` to check and validate builtin
and shared extension modules. The script also handles ``Modules/Setup`` and
will eventually replace ``setup.py``.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
2022-07-05 09:25:45 +02:00
Victor Stinner
fd76eb547d
gh-94383: Remove ElementTree.Element.copy() method ( #94384 )
...
xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, deprecated in Python 3.10, use the copy.copy()
function instead. The C implementation of xml.etree has no copy()
method, only a __copy__() method.
2022-07-04 15:51:01 +02:00
Victor Stinner
fbcee570d1
gh-94352: shlex.split() no longer accepts None ( #94353 )
...
shlex.split(): Passing None for s argument now raises an exception,
rather than reading sys.stdin. The feature was deprecated in Python
3.9.
2022-07-04 15:29:19 +02:00
Oleg Iarygin
670f7f10cf
gh-94512: Fix forced arg format in AC-processed multiprocessing (GH-94517)
2022-07-04 14:11:11 +01:00
Oleg Iarygin
9b50f76fcd
gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)
2022-07-04 14:10:10 +01:00
Oleg Iarygin
21f6b4d783
gh-94512: Fix forced arg format in AC-processed msvcrtmodule (GH-94514)
2022-07-04 14:09:34 +01:00
Vinay Sajip
a391b74dbe
Update logging documentation: change cross-reference and add webapp r… (GH-94540)
2022-07-04 06:06:43 +01:00
Jason R. Coombs
71848c9609
gh-93963: Officially deprecate abcs and warn about their usage. (GH-93965)
...
Fixes #93963
Automerge-Triggered-By: GH:jaraco
2022-07-03 12:17:27 -07:00
Thomas Perl
b296c7442b
gh-92869: ctypes: Add c_time_t ( #92870 )
...
Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies.
Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2022-07-03 11:58:02 -07:00
Terry Jan Reedy
39c29f753e
IDLE doc: Tweek RESTART and Windows console start ( #94530 )
2022-07-03 12:56:44 -04:00
Oleg Iarygin
7db1d2eaf3
gh-93096: Remove `python -m base64 -t` (gh-94230)
2022-07-02 15:53:43 +09:00
Erlend Egeberg Aasland
cc81962e69
Doc: fix sqlite3 blob reference anchor ( #94505 )
2022-07-02 08:35:48 +02:00
Erlend Egeberg Aasland
3a2e61524f
gh-94393: Remove unneeded module state from _json ( #94394 )
2022-07-02 08:24:19 +02:00
Oleg Iarygin
1bc8a38d8b
gh-93096: Remove `python -m codecs` (gh-94233)
2022-07-02 14:45:31 +09:00
Christian Heimes
ec5e253556
gh-90005: Port _dbm module to PY_STDLIB_MOD (GH-94433)
2022-07-01 21:48:38 +02:00
Sam Ezeh
80aaeabb8b
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416)
2022-07-01 18:21:27 +02:00
Mariatta Wijaya
ad55147c1d
Update code sample when importing modules in queue doc (GH-94244)
...
In the queue documentation, the code snippet shows the import to be not PEP 8 compliant.
Since people typically copy-paste from such code samples, I think it's important to show best-practices here.
2022-07-01 17:51:46 +02:00
Stanley
3abda7a38a
gh-75372: Specify major version in README for installation (GH-92759)
2022-07-01 17:18:07 +02:00
Irit Katriel
c57aad777a
gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)
2022-07-01 15:33:35 +01:00
Mark Shannon
be80db14c4
GH-94438: Account for NULLs on evaluation stack when jumping lines. (GH-94444)
2022-07-01 14:01:14 +01:00
Ezio Melotti
022800253f
Remove pr trigger from project-updater GHA. ( #94483 )
2022-07-01 13:06:09 +02:00
Mark Shannon
544531de23
GH-94262: Don't create frame objects for frames that aren't yet complete. (GH-94371)
2022-07-01 11:08:20 +01:00
Petr Viktorin
1df9449db2
gh-84461: Tool/wasm/python.html: Add subresource integrity hashes ( #93953 )
2022-07-01 11:54:30 +02:00
Trey Hunner
a8e333d79a
gh-84461: Improve WebAssembly in-browser demo ( #91879 )
...
* Buffer standard input line-by-line
* Add non-root .editorconfig for JS & HTML indent
* Add support for clearing REPL with CTRL+L
* Support unicode in stdout and stderr
* Remove \r\n normalization
* Note that local .editorconfig file extends root
* Only normalize lone \r characters (convert to \n)
* Skip non-printable characters in buffered input
* Fix Safari bug (regex lookbehind not supported)
Co-authored-by: Christian Heimes <christian@python.org>
2022-07-01 11:52:58 +02:00
Ezio Melotti
5f2c91a343
Add a workflow to add issues/PRs to projects. ( #94447 )
...
* Add a workflow to add issues/PRs to projects.
* Apply suggestions from code review
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-07-01 10:33:10 +02:00
Christian Heimes
d6acdc1b60
gh-90005-ffi: Fix building _ctypes without pkg-config (GH-94451)
...
The fallback path did not set LIBFFI_LIBS variable to link with ``-lffi``.
2022-07-01 09:23:41 +02:00
Mariatta Wijaya
62bb7a3b50
multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)
2022-06-30 10:23:04 -07:00
Guido van Rossum
594c369949
GH-94398: TaskGroup: Fail create_task() during shutdown (GH-94400)
...
Once the task group is shutting down, it should not be possible to create a new task.
Here "shutting down" means `self._aborting` is set, indicating that at least one task
has failed and we have cancelled all others.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-06-30 19:10:46 +02:00
Mehdi ABAAKOUK
4261b6bffc
gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock ( #94050 )
...
The inspect version was not working with unittest.mock.AsyncMock.
The fix introduces special-casing of AsyncMock in
`inspect.iscoroutinefunction` equivalent to the one
performed in `asyncio.iscoroutinefunction`.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-06-30 19:08:38 +02:00
Jean-Christophe Helary
639e35108b
xml.dom.minidom docs: fix typo ( #93437 )
2022-06-30 10:06:42 -07:00
Guido van Rossum
b6ec6d4041
GH-90908: Document asyncio.TaskGroup (GH-94359)
...
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-06-30 18:16:22 +02:00
Christian Heimes
67d208fbee
gh-93491: Fix PEP 11 tier detection for FreeBSD (GH-94441)
2022-06-30 18:04:10 +02:00
neonene
ea39b77de9
gh-91719: Reload opcode on unknown error so that C can optimize the dispatching in ceval.c ( #94364 )
2022-06-30 08:38:29 -07:00
Irit Katriel
d68f2d27bb
gh-89038: [doc] update dis.findlinestarts documentation for changes related to PEP-626 (GH-94247)
2022-06-30 15:57:35 +01:00
Mark Shannon
b152bf448b
GH-94329: Don't raise on excessive stack consumption (GH-94421)
2022-06-30 15:27:14 +01:00
Oleg Iarygin
9ef50c1d46
Delete DOS-only PC/testpy.py (GH-94419)
2022-06-30 14:17:35 +01:00
Irit Katriel
be82d26570
gh-94332: make it safe to call assemble_free when assemble_init has not been called (GH-94389)
2022-06-30 12:26:29 +01:00
Irit Katriel
21cbdae90f
gh-92336: linecache.getline should not raise exceptions on decoding errors (GH-94410)
2022-06-30 10:18:18 +01:00
Irit Katriel
68fb03249f
bpo-92336: [doc] clarify that the dfile is read by the traceback display code (GH-94409)
2022-06-29 20:24:43 +01:00
Cheryl Sabella
22b783aba0
Docs: Update SyntaxError message in REPL example for list comprehension (GH-93901)
2022-06-29 19:06:51 +02:00
Erlend Egeberg Aasland
ac8a7b9b6c
gh-94401: Remove unneeded bz2 module state ( #94402 )
2022-06-29 17:51:36 +02:00
Oleg Iarygin
63c772d5ae
Delete unused PC/empty.c (GH-94418)
2022-06-29 15:58:56 +01:00
Christian Heimes
6485c3c726
gh-94404: Use module CFLAGS before PY_STDMODULE_CFLAGS (GH-94413)
...
``PY_STDMODULE_CFLAGS`` may contain include directories with system
headers. This can break compiling with built-in libmpdec.
2022-06-29 15:44:14 +02:00
Erlend Egeberg Aasland
655b3aa4c8
gh-94401: Remove unneeded overlapped module state ( #94403 )
2022-06-29 12:24:51 +02:00
Julien Palard
595baa4e06
gh-86404: [doc] Two 'make suspicious' false positives. (GH-94407)
2022-06-29 10:18:54 +02:00