Yurii Karabas
0ef8d921f5
gh-91603: Speed up isinstance/issubclass on union types (GH-91631)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-04-28 23:24:19 +08:00
Victor Stinner
87c6cf9aa7
gh-89479: Export _Py_GetSpecializationStats() internal function ( #92011 )
...
When Python is built with "./configure --enable-pystats" (if the
Py_STATS macro is defined), the _Py_GetSpecializationStats() function
must be exported, since it's used by the _opcode extension which is
built as a shared library.
2022-04-28 14:02:45 +02:00
Brett Cannon
407c3afe19
gh-91217: deprecate uu (GH-92009)
...
Automerge-Triggered-By: GH:brettcannon
2022-04-27 20:26:33 -07:00
Ashwin Ramaswami
f348154c8f
Add note that headers added via urllib.request.add_header are added to redirected requests ( #30708 )
2022-04-27 16:25:03 -06:00
slateny
161dff7e10
gh-84459: Make wording more specific for Path.replace (GH-91853)
...
#84459
2022-04-27 15:03:03 -07:00
David CARLIER
ad9f817eeb
gh-91498: socket: Add TCP_CONNECTION_INFO on macOS ( #69256 )
...
Fixes GH-91498
2022-04-27 06:47:17 -06:00
Victor Stinner
80de0273c0
gh-68966: Deprecate the mailcap module ( #91951 )
2022-04-26 22:43:50 +02:00
slateny
b87f7f2c21
bpo-21761: Clarify __file__/__cached__ in import reference (GH-31565)
...
Automerge-Triggered-By: GH:brettcannon
2022-04-26 12:12:02 -07:00
Brett Cannon
1af871eeee
gh-91217: deprecate telnetlib (GH-91958)
2022-04-26 10:45:08 -07:00
Brett Cannon
d174ebe91e
gh-91217: deprecate sunau (GH-91866)
2022-04-25 16:26:43 -07:00
Gregory P. Smith
cd5726fe67
gh-91401: Add a failsafe way to disable vfork. ( #91490 )
...
Just in case there is ever an issue with _posixsubprocess's use of
vfork() due to the complexity of using it properly and potential
directions that Linux platforms where it defaults to on could take, this
adds a failsafe so that users can disable its use entirely by setting
a global flag.
No known reason to disable it exists. But it'd be a shame to encounter
one and not be able to use CPython without patching and rebuilding it.
See the linked issue for some discussion on reasoning.
Also documents the existing way to disable posix_spawn.
2022-04-25 16:19:39 -07:00
Victor Stinner
20cc695286
gh-64783: Fix signal.NSIG value on FreeBSD ( #91929 )
...
Fix signal.NSIG value on FreeBSD to accept signal numbers greater
than 32, like signal.SIGRTMIN and signal.SIGRTMAX.
* Add Py_NSIG constant.
* Add pycore_signal.h internal header file.
* _Py_Sigset_Converter() now includes the range of valid signals in
the error message.
2022-04-26 00:13:31 +02:00
Jelle Zijlstra
93d280141c
gh-90633: Improve error and docs for typing.assert_never ( #91720 )
...
Closes #90633
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-04-25 06:40:18 -07:00
Ezio Melotti
f7641a2ffe
gh-91888: add a `:gh:` role to the documentation ( #91889 )
...
* Add a new :gh:`...` role for GitHub issues.
* Fix a GitHub id to use the :gh: role.
* Add Misc/NEWS entry.
* Refactoring and rephrasing.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-25 12:05:54 +02:00
Jelle Zijlstra
dd3cf124a0
gh-91491: What's New in 3.11 section for typing PEPs ( #91721 )
...
Other aspects of typing aren't covered yet; I'll do that in a
separate PR.
2022-04-24 14:13:15 -07:00
Zac Hatfield-Dodds
b4e048411f
gh-91230: Concise catch_warnings with simplefilter ( #91435 )
2022-04-23 17:55:22 -07:00
Brett Cannon
692e9078a1
gh-91217: deprecate spwd ( #91846 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-23 14:48:17 -07:00
Christian Heimes
92c1037afc
gh-84461: Add --enable-wasm-pthreads and more file systems (GH-91820)
2022-04-23 14:59:33 +02:00
Christian Heimes
9b5ca5405e
gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)
2022-04-23 09:52:16 +02:00
Pablo Galindo Salgado
0daa99f68b
gh-88116: Enhance the inspect frame APIs to use the extended position information (GH-91531)
2022-04-23 03:16:48 +01:00
slateny
a3f2cf3ced
gh-85864: Mark positional-only args in io docs ( #91683 )
2022-04-22 17:30:52 -07:00
Shantanu
254aaa7981
gh-91547: Remove "Undocumented modules" page ( #91682 )
2022-04-22 16:01:52 -07:00
Brett Cannon
e7929cba16
gh-91217: deprecate-sndhdr ( #91806 )
...
Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-04-22 15:48:03 -07:00
Géry Ogam
5576ddbbbc
bpo-46720: Add support for path-like objects to multiprocessing.set_executable for Windows (GH-31279)
...
This bring the API to be on a par with Unix-like systems.
2022-04-22 15:47:09 -07:00
Dominic Davis-Foster
9fe82d0b70
gh-91764: Mark version typing.Unpack and LiteralString were added in ( #91817 )
...
Closes GH-91764
2022-04-22 07:28:39 -07:00
Erlend Egeberg Aasland
1218061609
gh-89653: PEP 670: Amend docs (GH-91813)
2022-04-22 14:59:18 +02:00
Petr Viktorin
82ec638ab7
Docs: Clarify availability of PyOS_CheckStack (GH-91816)
2022-04-22 12:44:43 +02:00
Sam Ezeh
bcf14ae433
gh-91291: Accept attributes as keyword arguments in decimal.localcontext ( #32242 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-04-21 21:27:15 -07:00
Brett Cannon
2551a6c92f
gh-91217: deprecate-pipes (GH-91779)
2022-04-21 19:28:34 -07:00
Erlend Egeberg Aasland
29afb7d2ef
gh-69093: Add indexing and slicing support to sqlite3.Blob ( #91599 )
...
Authored-by: Aviv Palivoda <palaviv@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@innova.no>
2022-04-21 18:45:16 -07:00
Inada Naoki
1317b70f89
gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2022-04-22 10:39:24 +09:00
Victor Stinner
364ed94092
gh-89373: _Py_Dealloc() checks tp_dealloc exception ( #32357 )
...
If Python is built in debug mode, _Py_Dealloc() now ensures that the
tp_dealloc function leaves the current exception unchanged.
2022-04-21 23:04:01 +02:00
Victor Stinner
eaa85cb22f
gh-91768: C API no longer use "const PyObject*" type ( #91769 )
...
Py_REFCNT(), Py_TYPE(), Py_SIZE() and Py_IS_TYPE() functions argument
type is now "PyObject*", rather than "const PyObject*".
* Replace also "const PyObject*" with "PyObject*" in functions:
* _Py_strhex_impl()
* _Py_strhex_with_sep()
* _Py_strhex_bytes_with_sep()
* Remove _PyObject_CAST_CONST() and _PyVarObject_CAST_CONST() macros.
* Py_IS_TYPE() can now use Py_TYPE() in its implementation.
2022-04-21 22:07:19 +02:00
Mark Shannon
d44815cabc
GH-88116: Document that PyCodeNew is dangerous, and make PyCode_NewEmpty less dangerous. (GH-91790)
2022-04-21 19:08:36 +01:00
Mark Shannon
5974827c71
GH-88756: Update docs for PEP 523 eval function type. (GH-91788)
2022-04-21 18:14:01 +01:00
Raymond Hettinger
25e35742ce
Minor improvements to grammar and markup. (GH-91762)
2022-04-20 16:02:47 -05:00
slateny
ad3ca17ff5
bpo-23747: Enhance platform doc, document default behavior (GH-31462)
2022-04-20 18:23:40 +02:00
Irit Katriel
f92bcfe6de
gh-89770: [PEP-678] add exception notes to tutorial (GH-30441)
2022-04-20 13:43:10 +01:00
slateny
5101d97d0b
bpo-30718: Add information about text buffering (GH-32351)
2022-04-20 17:24:53 +09:00
Raymond Hettinger
26f2e688b8
Clean-up the argparse docs quick links table (GH-91726)
2022-04-20 01:21:54 -05:00
slateny
692aea6f38
Add link to sys.path in os lib ( #91679 )
2022-04-19 20:59:48 -07:00
AJ Jordan
326ae71f1d
Fix awkward sentence in signal docs ( #91508 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-04-19 18:20:25 -07:00
Irit Katriel
3c43806513
gh-74166: make all_errors keyword-only (GH-91704)
2022-04-19 18:16:20 +01:00
Victor Stinner
061a8bf77c
gh-91231: Add shutdown_timeout to multiprocessing BaseManager ( #32112 )
...
Add an optional keyword 'shutdown_timeout' parameter to the
multiprocessing.BaseManager constructor. Kill the process if
terminate() takes longer than the timeout.
Multiprocessing tests pass test.support.SHORT_TIMEOUT
to BaseManager.shutdown_timeout.
2022-04-19 16:27:00 +02:00
slateny
6a7a8a740e
Doc: Fix link formatting typo (GH-91659)
2022-04-19 18:15:46 +09:00
Victor Stinner
aa5c0a9f8d
bpo-40421: Cleanup PyFrame C API (GH-32417)
2022-04-19 09:53:10 +02:00
Yurii Karabas
014eb7fd02
bpo-46014: Add docs regarding `functools.singledispatch` changes in 3.11 ( #32282 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-04-18 19:50:59 -07:00
Irit Katriel
39a54ba638
gh-74166: Add option to get all errors from socket.create_connection (GH-91586)
2022-04-18 23:15:41 +01:00
Susan Su
8e76d7e1a9
bpo-21150: Add quick link/summary table to the top of argparse documentation (GH-12005)
...
No work has been done to move this forward. On the theory that perfect is the enemy of good, I'm going to push it and we can make minor edits as needed afterwards.
2022-04-17 23:46:18 -05:00
Gouvernathor
0e6dca0193
Remove duplicate explanation (GH-91534)
2022-04-18 13:26:40 +09:00