Serhiy Storchaka
dee7beeb4f
bpo-34392: Add sys. _is_interned() (GH-8755)
2023-12-04 11:09:06 +02:00
Hugo van Kemenade
489aeac3a2
gh-101100: Fix Sphinx warning in `library/gettext.rst` ( #112668 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-03 20:23:09 +00:00
Alex Waygood
45650d1c47
gh-101100: Fix most Sphinx nitpicks in `inspect.rst` ( #112662 )
2023-12-03 17:32:49 +00:00
Marco Aurélio A. Barbosa
c27b09c813
Fix link to 'The Perils of Floating Point', on the tutorial (GH-112499)
...
Use author link to 'The Perils of Floating Point'.
2023-12-03 17:14:14 +02:00
Irit Katriel
97857ac058
gh-112645: remove deprecation warning for use of onerror in shutil.rmtree ( #112659 )
2023-12-03 14:02:37 +00:00
Alex Waygood
4ed46d2244
Run more `inspect.rst` code snippets in CI ( #112654 )
2023-12-03 11:50:22 +00:00
Victor Stinner
a971574b73
gh-111545: Mention PEP 456 in PyHash_GetFuncDef() doc ( #112647 )
2023-12-03 11:21:48 +00:00
Alex Waygood
fc9e24b01f
gh-112316: improve docs for `inspect.signature` and `inspect.Signature` ( #112631 )
2023-12-03 01:37:34 -08:00
Nikita Sobolev
a9574c68f0
gh-112139: Add `inspect.Signature.format` and use it in `pydoc` ( #112143 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-12-02 15:39:43 -08:00
Hugo van Kemenade
0229d2a9b1
Docs: Use sphinx-notfound-page to show a nicer 404 page ( #111084 )
2023-12-02 17:41:40 +00:00
Nikita Sobolev
a74daba7ca
gh-112316: Improve docs of `inspect.signature` and `Signature.from_callable` ( #112317 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-12-02 13:13:44 +00:00
William Wen
939fc6d6ea
gh-106922: Support multi-line error locations in traceback (attempt 2) ( #112097 )
2023-12-01 22:18:16 +00:00
Victor Stinner
5f6ac2d88a
gh-110481: Fix Py_SET_REFCNT() integer overflow ( #112174 )
...
If Py_NOGIL is defined and Py_SET_REFCNT() is called with a reference
count larger than UINT32_MAX, make the object immortal.
Set _Py_IMMORTAL_REFCNT constant type to Py_ssize_t to fix the
following compiler warning:
Include/internal/pycore_global_objects_fini_generated.h:14:24:
warning: comparison of integers of different signs: 'Py_ssize_t'
(aka 'long') and 'unsigned int' [-Wsign-compare]
if (Py_REFCNT(obj) < _Py_IMMORTAL_REFCNT) {
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
2023-12-01 15:50:16 +01:00
Tian Gao
c2982380f8
gh-112510: Add `readline.backend` for the backend readline uses (GH-112511)
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
2023-12-01 14:05:55 +00:00
William Andrea
f6afa426d8
Add links under "generator expression" in glossary ( #112537 )
2023-12-01 00:41:11 -08:00
Alperen Serkan Aksöz
730d450d43
gh-112502: Docs: Improve docs for gc.collect method ( #112562 )
...
* Docs: Improve docs for gc.collect method
* Update gc.rst
2023-11-30 21:04:00 +00:00
Matt Prodani
1ff212debd
gh-111699: Move smtpd note to dedicated section in What's New Python 3.12 doc (GH-112544)
...
Relocate smtpd deprecation notice to it's own section rather than under
'locale' in docs for What's New in Python 3.12 doc
2023-11-30 14:53:19 +02:00
Jelle Zijlstra
d4a6229afe
gh-104003: Implement PEP 702 ( #104004 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-29 09:38:29 -08:00
Ethan Furman
f9e6ce0395
[Enum] update class creation for RuntimeError changes (GH-111815)
2023-11-28 20:40:12 -08:00
Grant Ramsay
e413daf5f6
gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support ( #112491 )
...
If OpenSSL was built without PSK support, the python TLS-PSK
methods will raise "NotImplementedError" if called.
Add a constant "ssl.HAS_PSK" to check if TLS-PSK is supported
2023-11-28 16:15:39 -08:00
Hugo van Kemenade
3fdf7ae3d1
gh-110930: Correct book title by Alan D. Moore ( #112490 )
2023-11-28 16:46:00 +02:00
Irit Katriel
2c68011780
gh-112332: Deprecate TracebackException.exc_type, add exc_type_str. ( #112333 )
2023-11-28 08:03:25 +00:00
Alex Waygood
2e632fa07d
Docs: fix markup for `importlib.machinery.NamespaceLoader` ( #112479 )
2023-11-28 00:15:23 +00:00
Eugene Toder
562d7149c6
Correct documentation for AF_PACKET ( #112339 )
...
Protocol in the address tuple should *not* be in the network-byte-order, because it is converted internally[1].
[1] 89ddea4886/Modules/socketmodule.c (L2144)
network byte order doesn't make sense for a python level int anyways. It's a fixed size C serialization concept.
2023-11-27 15:42:37 -08:00
Tian Gao
b90a5cf11c
gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set ( #111762 )
...
Co-authored-by: Christian Walther <cwalther@users.noreply.github.com>
2023-11-27 23:11:40 +00:00
Serhiy Storchaka
4dcfd02bed
gh-68166: Add support of "vsapi" in ttk.Style.element_create() (GH-111393)
2023-11-27 20:57:33 +02:00
Jacob Walls
99a73c3465
gh-76912: Raise OSError from any failure in getpass.getuser() ( #29739 )
...
* bpo-32731: Raise OSError from any failure in getpass.getuser()
Previously, if the username was not set in certain environment variables, ImportError escaped on Windows systems, and it was possible for KeyError to escape on other systems if getpwuid() failed.
2023-11-27 10:05:55 -08:00
Adam Turner
ffe1b2d07b
GH-101100: Fix reference warnings for ``socket`` methods ( #110114 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-11-27 16:36:54 +02:00
Victor Stinner
d44ee42cd7
Move What's New In Python 3.12 entries to the right section ( #112447 )
...
Jython and ctypes removals are unrelated to C API Removals.
2023-11-27 12:55:52 +01:00
Tom Levy
fb79e1ed4a
Docs: fix typo in doc for sqlite3.Cursor.execute ( #112442 )
2023-11-27 09:27:47 +00:00
Grant Ramsay
e954ac7205
gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module ( #103181 )
...
Add support for TLS-PSK (pre-shared key) to the ssl module.
---------
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-11-27 04:01:44 +00:00
Hugo van Kemenade
3faf8e586d
gh-101100: Fix Sphinx reference warnings (GH-112416)
...
* Fix Sphinx warning in library/xml.rst
Direct use of the pyexpat module is deprecated, but this is how to check the version for security purposes
* Fix Sphinx warning in library/importlib.resources.rst
* Use italics for parameters
* Link to the exception
* Fix Sphinx warning in library/gzip.rst
* Document message and header defect base classes to fix Sphinx warning in library/email.headerregistry.rst
* Restore feed_eof() doc to fix Sphinx warning in library/asyncio-stream.rst
* Fix Sphinx warning in extending/newtypes.rst
* Fix Sphinx warning in c-api/set.rst
On stdtypes.rst, set and frozenset are documented together and the frozenset has the working refs
2023-11-25 15:40:19 -08:00
Raymond Hettinger
97f8f28b3e
gh-112331: Fix reference manual description of attribute lookup mechanics (gh-112375)
2023-11-25 16:20:53 -06:00
Raymond Hettinger
f93a4ef7a9
Descriptor HowTo: Sync the error-messages with the C code. Add tests. (gh-112403)
2023-11-25 16:18:00 -06:00
Hugo van Kemenade
0303a9fa79
gh-101100 : Fix Sphinx warnings in `library/doctest.rst` ( #112399 )
...
* Fix Sphinx warnings in library/doctest.rst
* Don't link to self, and wrap a line
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Link to load_tests protocol
* Link to option flags
* Wrap line
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
---------
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-25 20:08:32 +02:00
Hugo van Kemenade
6b961b8cea
gh-101100: Define `_tkinter` module to fix references ( #112382 )
...
Define _tkinter module to fix references
2023-11-25 08:18:02 +02:00
Hugo van Kemenade
d525d01e27
gh-101100: Define `test.regrtest` module to fix references ( #112381 )
...
Define test.regrtest module to fix references
2023-11-25 08:17:31 +02:00
Irit Katriel
fafae08cc7
gh-59254: mention in open() doc that line buffering is for writing ( #112318 )
2023-11-24 18:59:41 +01:00
Raymond Hettinger
d9fc15222e
Remove bogus annotations from the descriptor howto guide ( #112349 )
2023-11-23 15:16:00 -06:00
Irit Katriel
10e1a0c916
gh-112137: change dis output to display labels instead of offsets ( #112138 )
2023-11-22 22:36:55 +00:00
Sebastian Rittau
6c47eaccfa
Fix docstring and var name of itertools recipe ( #112113 )
...
`prepend()` works with arbitrary iterables, not only iterators. In fact,
the example given uses a `list`, which is iterable, but not an iterator.
2023-11-22 07:35:36 +02:00
Tian Gao
46500c42f0
GH-111963: Clarify sys.monitoring.free_tool_id's limitations (GH-112291)
2023-11-21 14:58:30 -08:00
Junya Okabe
9d70831cb7
gh-110745: add a newline argument to pathlib.Path.read_text ( #110880 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Barney Gale <barney.gale@gmail.com>
2023-11-21 22:32:38 +00:00
Lincoln
d857d5331a
gh-111361: Added an update for unicodedata in what's new in Python 3.13 ( #112031 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-21 11:46:26 -07:00
Unique-Usman
a6d25de375
gh-110383: Explained which error message is generated when there is an unhandled exception ( #111574 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-19 05:20:10 -07:00
Alex Ptakhin
6bf8f20344
gh-110383: Fix documentation profile cumtime fix ( #112221 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-11-19 02:56:54 -07:00
Charlie Zhao
dabc0d77b2
Fix typo in documentation of `importlib.metadata` (GH-112099)
...
Fix minor typo in importlib doc
2023-11-17 15:11:30 -08:00
Victor Stinner
cb5048ea0e
gh-112026: Update What's New: _PyObject_Vectorcall() was restored ( #112171 )
2023-11-17 23:30:42 +01:00
Victor Stinner
7c50800241
gh-110481, doc: Add "immortal" term to the glossary ( #112180 )
2023-11-17 15:09:19 +01:00
Ori Avtalion
fb4cddb0cc
gh-94309: "What's new in Python 3.12": improve deprecation notice for typing.Hashable and typing.Sized ( #112196 )
2023-11-17 12:30:47 +00:00