summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* gh-112502: Docs: Improve docs for gc.collect method (#112562)Alperen Serkan Aksöz2023-11-301-2/+2
| | | | | * Docs: Improve docs for gc.collect method * Update gc.rst
* gh-104003: Implement PEP 702 (#104004)Jelle Zijlstra2023-11-291-0/+50
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-112454: Disable TLS-PSK if OpenSSL was built without PSK support (#112491)Grant Ramsay2023-11-291-0/+12
| | | | | | 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
* gh-110930: Correct book title by Alan D. Moore (#112490)Hugo van Kemenade2023-11-281-2/+2
|
* gh-112332: Deprecate TracebackException.exc_type, add exc_type_str. (#112333)Irit Katriel2023-11-281-0/+8
|
* Docs: fix markup for `importlib.machinery.NamespaceLoader` (#112479)Alex Waygood2023-11-281-1/+1
|
* Correct documentation for AF_PACKET (#112339)Eugene Toder2023-11-271-2/+1
| | | | | | | Protocol in the address tuple should *not* be in the network-byte-order, because it is converted internally[1]. [1] https://github.com/python/cpython/blob/89ddea4886942b0c27a778a0ad3f0d5ac5f518f0/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.
* gh-68166: Add support of "vsapi" in ttk.Style.element_create() (GH-111393)Serhiy Storchaka2023-11-271-1/+59
|
* gh-76912: Raise OSError from any failure in getpass.getuser() (#29739)Jacob Walls2023-11-271-2/+5
| | | | * 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.
* GH-101100: Fix reference warnings for ``socket`` methods (#110114)Adam Turner2023-11-271-12/+12
| | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Docs: fix typo in doc for sqlite3.Cursor.execute (#112442)Tom Levy2023-11-271-1/+1
|
* gh-63284: Add support for TLS-PSK (pre-shared key) to the ssl module (#103181)Grant Ramsay2023-11-271-0/+88
| | | | | | | | 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>
* gh-101100: Fix Sphinx reference warnings (GH-112416)Hugo van Kemenade2023-11-255-8/+21
| | | | | | | | | | | | | | | | | | | | | | | * 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
* gh-101100 : Fix Sphinx warnings in `library/doctest.rst` (#112399)Hugo van Kemenade2023-11-252-20/+29
| | | | | | | | | | | | | | | | | | | * 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>
* gh-101100: Define `_tkinter` module to fix references (#112382)Hugo van Kemenade2023-11-251-0/+3
| | | Define _tkinter module to fix references
* gh-101100: Define `test.regrtest` module to fix references (#112381)Hugo van Kemenade2023-11-251-0/+3
| | | Define test.regrtest module to fix references
* gh-59254: mention in open() doc that line buffering is for writing (#112318)Irit Katriel2023-11-241-1/+1
|
* gh-112137: change dis output to display labels instead of offsets (#112138)Irit Katriel2023-11-221-9/+27
|
* Fix docstring and var name of itertools recipe (#112113)Sebastian Rittau2023-11-221-3/+3
| | | | `prepend()` works with arbitrary iterables, not only iterators. In fact, the example given uses a `list`, which is iterable, but not an iterator.
* GH-111963: Clarify sys.monitoring.free_tool_id's limitations (GH-112291)Tian Gao2023-11-211-0/+7
|
* gh-110745: add a newline argument to pathlib.Path.read_text (#110880)Junya Okabe2023-11-211-1/+3
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Barney Gale <barney.gale@gmail.com>
* gh-110383: Fix documentation profile cumtime fix (#112221)Alex Ptakhin2023-11-191-2/+2
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Fix typo in documentation of `importlib.metadata` (GH-112099)Charlie Zhao2023-11-171-1/+1
| | | Fix minor typo in importlib doc
* gh-110481, doc: Add "immortal" term to the glossary (#112180)Victor Stinner2023-11-171-3/+3
|
* gh-112165: Fix typo in `__main__.py` (#112183)Terry Jan Reedy2023-11-171-1/+1
| | | Change '[2]' to '[1]' to get second argument.
* [doc] Make subprocess.wait documentation more precise (#98700)Luis Pedro Coelho2023-11-161-3/+4
| | | | | | | | | | [doc] Make subprocess.wait doc more precise An active loop is only used when the `timeout` parameter is used on POSIX. When no timeout is used, the code calls `os.waitpid` internally (which puts the process on a sleep status). On Windows, the internal Windows API call accepts a timeout parameter, so that is delegated to the OS.
* gh-111622: Fix doc for items views (#112051)Terry Jan Reedy2023-11-141-5/+8
| | | | They are set-like even when some values are not hashable, but work even better when all are.
* GH-110417: Fix `glob` docs ordering (#110418)Barney Gale2023-11-131-34/+35
| | | | | | | Fix incorrect placement of `translate()` docs from cf67ebf. Move "see also: pathlib" admonition to the bottom of the page, alongside one for fnmatch. This helps the module introduction flow more naturally into the function descriptions. Add an "Examples" subheading just before the examples. This makes it more obvious that examples aren't specifically related to the preceding documentation of `escape()` and `translate()`.
* GH-72904: Add `glob.translate()` function (#106703)Barney Gale2023-11-131-0/+39
| | | | | | | | | | | Add `glob.translate()` function that converts a pathname with shell wildcards to a regular expression. The regular expression is used by pathlib to implement `match()` and `glob()`. This function differs from `fnmatch.translate()` in that wildcards do not match path separators by default, and that a `*` pattern segment matches precisely one path segment. When *recursive* is set to true, `**` pattern segments match any number of path segments, and `**` cannot appear outside its own segment. In pathlib, this change speeds up directory walking (because `_make_child_relpath()` does less work), makes path objects smaller (they don't need a `_lines` slot), and removes the need for some gnarly code. Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-90890: New methods to access mailbox.Maildir message info and flags (#103905)Stephen Gildea2023-11-111-1/+103
| | | | | | | | | | | | | | | New methods to access mailbox.Maildir message info and flags: get_info, set_info, get_flags, set_flags, add_flag, remove_flag. These methods speed up accessing a message's info and/or flags and are useful when it is not necessary to access the message's contents, as when iterating over a Maildir to find messages with specific flags. --------- * Add more str type checking * modernize to f-strings instead of % Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-110722: Make `-m test -T -j` use sys.monitoring (GH-111710)Łukasz Langa2023-11-101-1/+9
| | | | | | | | | | | Now all results from worker processes are aggregated and displayed together as a summary at the end of a regrtest run. The traditional trace is left in place for use with sequential in-process test runs but now raises a warning that those numbers are not precise. `-T -j` requires `--with-pydebug` as it relies on `-Xpresite=`.
* gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)Zac Hatfield-Dodds2023-11-101-3/+3
|
* gh-81925: Implement native thread ids for kFreeBSD (#111761)Samuel Thibault2023-11-092-2/+8
| | | | | --------- Co-authored-by: Antoine Pitrou <antoine@python.org>
* gh-111835: Add seekable method to mmap.mmap (gh-111852)Donghee Na2023-11-091-0/+8
|
* gh-68166: Tkinter: Add tests and examples for element_create() (GH-111453)Serhiy Storchaka2023-11-081-2/+16
| | | | | * Remove mention of "vsapi" element type from the documentation. * Add tests for element_create() and other ttk.Style methods. * Add examples for element_create() in the documentation.
* gh-111246: Remove listening Unix socket on close (#111483)Pierre Ossman (ThinLinc team)2023-11-081-1/+9
| | | | | Try to clean up the socket file we create so we don't add unused noise to the file system.
* Glossary: Add "static type checker" (#111837)Jelle Zijlstra2023-11-082-3/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-85098: Implement functional CLI of symtable (#109112)Serhiy Storchaka2023-11-071-0/+18
| | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-111729: update generic syntax for `typing.Concatenate` sample code in ↵方糖2023-11-071-5/+2
| | | | | `Doc/library/typing.rst` (#111734) use new generic syntax
* gh-109466: Add ipv6_mapped property to IPv4Address (#109467)Charles Machalow2023-11-051-0/+7
| | | | | Adds the `IPv4Address.ipv6_mapped` property. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111719: Add extra check for alias command (#111720)Tian Gao2023-11-041-1/+1
|
* gh-111681: minor fixes to typing doctests; remove unused imports in ↵Nikita Sobolev2023-11-031-4/+4
| | | | | `test_typing` (#111682) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-031-1/+2
| | | | frame state (#111648)
* gh-54434: Make difflib.rst doctests pass. (#111677)Terry Jan Reedy2023-11-031-3/+5
|
* Fix typo in documentation of `SysLogHandler.createSocket` (#111665)LoipesMas2023-11-021-3/+1
|
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-021-2/+11
| | | | (#111459)
* gh-111576: Improve documention for tkinter.messagebox (GH-111578)Serhiy Storchaka2023-11-011-10/+165
|
* gh-111282: Fix NamedTemporaryFile example code (GH-111283)Krzysiek Karbowiak2023-10-311-7/+7
|
* gh-110774: allow setting the Runner(loop_factory=...) from ↵Thomas Grainger2023-10-311-0/+8
| | | | | | | IsolatedAsyncioTestCase (#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-102249: Expand sys.call_tracing documentation (#102806)Quentin Peter2023-10-311-3/+17
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>