summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Follow PEP-8 guidelines in tutorial for standard library (GH-26127)Miss Islington (bot)2022-04-031-2/+3
| | | | | (cherry picked from commit 6db2db91b96aaa1270c200ec931a2250fe2799c7) Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
* bpo-47205: Skip error check of sched_get/setaffinity on FreeBSD (GH-32285)Miss Islington (bot)2022-04-032-2/+8
| | | | | (cherry picked from commit b82cdd1dac9a9be52051abd90a1ce69236ac41f4) Co-authored-by: Christian Heimes <christian@python.org>
* Language reference: Remove duplicated text about iterable unpacking (GH-25212)Miss Islington (bot)2022-04-031-3/+1
| | | | | (cherry picked from commit 4f5d56f8f33196f5ed8ffad0ab2f012afda2f9b3) Co-authored-by: Jiashuo Li <4003950+jiasli@users.noreply.github.com>
* bpo-24563: Link encoding names to encoding declarations (GH-32274)Miss Islington (bot)2022-04-031-3/+2
| | | | | (cherry picked from commit 01be5d6446abbdd95d0c18bd19a58a62b05568d8) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.9] More minor fixes to C API docs (GH-31525) (GH-32259)Jelle Zijlstra2022-04-0211-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wording fixes in type.rst * grammar and punctuation in sys.rst * set: grammar fixes * structures: capitalization fix * grammar fixes for sequence * objects: point to Py_TYPE instead of direct object access * numbers: add more explicit Python equivalences * method: add missing period * memory: grammar fix * mapping: grammar fixes * long: grammar fix * iter: fix grammar for PyAIter_Check * init: grammar fix. (cherry picked from commit 897bc6f9282238d5fb32d232ab62d30675244736) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.9] More minor fixes to C API docs (GH-31714) (GH-32260)Jelle Zijlstra2022-04-025-9/+7
| | | | | | | | | | * init_config: wording fixes * bytearray: remove XXX, there is a good link to the buffer docs * bytes, call, exceptions: minor wording fixes. (cherry picked from commit 677a87946630c5fbd9998969669b4dd4f4b32545) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.9] Document func parameter of locale.atof (GH-18183) (GH-32261)Jelle Zijlstra2022-04-021-3/+3
| | | | | | | | | | | | The second parameter (named `func`) has been present since the `locale` module was introduced in eef1d4e8b1, but has never been documented. This commit updates the documentation for `locale.atof` to clarify the behavior of the function and how the `func` parameter is used. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>. (cherry picked from commit 208da6d508bb2683732151f4ae288dfc8001267c) Co-authored-by: Kevin Locke <kevin@kevinlocke.name>
* bpo-45584: Clarify `math.trunc` documentation (GH-29183)Miss Islington (bot)2022-04-021-8/+10
| | | | | | | | | | | While floor/ceil 's documentation are very precise, `truncate` was not explained. I actually had to search online to understand the difference between `truncate` and `floor` (admittedly, once I remembered that numbers are signed, and that floating numbers actually uses a bit for negation symbol instead of two complement, it became obvious) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit ebbdbbff5d6840807e46ec61b8a323e94ee88de2) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
* codecs docs: fix grammar mistake (GH-29462)Miss Islington (bot)2022-04-021-1/+1
| | | | | (cherry picked from commit ea56845744e815ed468dfbdd835110254c3be997) Co-authored-by: 180909 <wjh180909@gmail.com>
* bpo-45114: Use lstat() instead of stat() in stat docs example (GH-29845)Miss Islington (bot)2022-04-021-1/+1
| | | | | (cherry picked from commit c93a0ac6972221787d8bea1c41a9feb667ed3d2c) Co-authored-by: 180909 <wjh180909@gmail.com>
* bpo-47031: Improve documentation for `math.nan` (GH-32170)Miss Islington (bot)2022-04-021-2/+17
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 182e93c3f57b0c72e765c9896066d32e461c0865) Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
* bpo-47194: Update zlib to v1.2.12 on Windows to resolve CVE-2018-25032 ↵Miss Islington (bot)2022-04-023-2/+3
| | | | | | | (GH-32241) (cherry picked from commit 6066739ff7794e54c98c08b953a699cbc961cd28) Co-authored-by: Zachary Ware <zach@python.org>
* [3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). ↵Jeremy Kloth2022-04-021-49/+36
| | | | | | | | (GH-32240) * [3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). (cherry picked from commit 76b8a075b8a79b08468fd0ed06a489a5c815bc11) Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
* bpo-14911: Corrected generator.throw() documentation (GH-32207)Miss Islington (bot)2022-03-314-8/+28
| | | | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 8be7c2bc5ad5e295f0f855bb31db412eef2c7c92) Co-authored-by: Dave Goncalves <davegoncalves@gmail.com>
* bpo-46775: OSError should call winerror_to_errno unconditionally on Windows ↵Miss Islington (bot)2022-03-312-8/+4
| | | | | | | (GH-32179) (cherry picked from commit d0c67ea0645b7ad37b867c167882a346a24de641) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-42340: Document issues around KeyboardInterrupt (GH-23255)Miss Islington (bot)2022-03-293-0/+82
| | | | | | | | Update documentation to note that in some circumstances, KeyboardInterrupt may cause code to enter an inconsistent state. Also document sample workaround to avoid KeyboardInterrupt, if needed. (cherry picked from commit d0906c90fcfbc4cfb9bb963eaa6bb152dd543b56) Co-authored-by: benfogle <benfogle@gmail.com>
* ctypes docs: Fix array-length reference to "non-negative" from "positive" ↵Miss Islington (bot)2022-03-291-1/+1
| | | | | | | | (GH-32097) (GH-32143) (cherry picked from commit 76f14b0463dc2c53911eaf95e85374e511ba9bcc) Co-authored-by: Yonatan Goldschmidt <yon.goldschmidt@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Fix typo in the sqlite3 docs (GH-31915) (GH-32158)Miss Islington (bot)2022-03-291-1/+1
| | | | | | Co-authored-by: Jonathan <89750679+AHypnotoad@users.noreply.github.com> (cherry picked from commit 66584c890d016e40d707400130d1cd98f2aedde9) Co-authored-by: Jonathan <jonathan.joyner94@gmail.com>
* bpo-47138: Ensure Windows docs build uses the same pinned version as other ↵Miss Islington (bot)2022-03-291-1/+2
| | | | | | | platforms (GH-32161) (cherry picked from commit 0dfabf9b4a58b835b61fc3d17784d4746f677e56) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131)Miss Islington (bot)2022-03-282-1/+5
| | | | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 5c30388f3c586ba2f33e349e22e5949cb92de621) Co-authored-by: Vincent Bernat <vincent@bernat.ch>
* [3.9] bpo-44493: Add missing terminated NUL in sockaddr_un's length ↵Miss Islington (bot)2022-03-282-1/+9
| | | | | | | | | | | | | | | | (GH-26866) (GH-32140) (GH-32156) Add missing terminated NUL in sockaddr_un's length - Linux: https://man7.org/linux/man-pages/man7/unix.7.html - *BSD: SUN_LEN (cherry picked from commit f6b3a07b7df60dc04d0260169ffef6e9796a2124) Co-authored-by: ty <zonyitoo@users.noreply.github.com> Automerge-Triggered-By: GH:gpshead (cherry picked from commit 5944807b09717d43bb017f700e8c451dd07199ed) Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
* bpo-28516: document contextlib.ExitStack.__enter__ behavior (GH-31636) ↵Miss Islington (bot)2022-03-281-0/+3
| | | | | | | | | | | | (GH-32145) The enter_context is updated with following information: 'The :meth:`__enter__` method returns the ExitStack instance, and performs no additional operations.' Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 86384cf83f96fcaec03e2ad6516e2e24f20d3b92) Co-authored-by: vidhya <96202776+Vidhyavinu@users.noreply.github.com> Co-authored-by: Ned Deily <nad@python.org>
* bpo-47138: Fix documentation build by pinning Jinja version to 3.0.3 (GH-32153)Hugo van Kemenade2022-03-282-0/+3
| | | | Co-authored-by: Maciej Olko <maciej.olko@gmail.com>
* bpo-47105: Cite grp.h instead of pwd.h in grp docs (GH-32091) (GH-32121)Miss Islington (bot)2022-03-261-1/+1
| | | | | (cherry picked from commit ee912ad6f66bb8cf5a8a2b4a7ecd2752bf070864) Co-authored-by: Alex Hedges <aphedges@users.noreply.github.com>
* Post 3.9.12Łukasz Langa2022-03-241-1/+1
|
* Python 3.9.12v3.9.12Łukasz Langa2022-03-2317-74/+181
|
* bpo-47101: list only activated algorithms in hashlib.algorithms_available ↵Miss Islington (bot)2022-03-233-1/+20
| | | | | | | (GH-32076) (cherry picked from commit 48e2010d92076b472922fa632fffc98ee150004f) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-47061: document module deprecations due to PEP 594 (GH-31984) ↵Hugo van Kemenade2022-03-2327-22/+97
| | | | | | | | | | (GH-32082) Also removed asynchat, asyncore, and smtpd from their respective toctree entries so they are only in the superceded subtree. (cherry picked from commit 9ac2de922a0f783bd43b8e026e4fb70fd1888572) Co-authored-by: Brett Cannon <brett@python.org> Automerge-Triggered-By: GH:brettcannon
* [3.9] bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712) ↵Jelle Zijlstra2022-03-232-21/+89
| | | | | | | | | | | | | | | | | | | (GH-31941) (GH-32067) * [3.9] [3.10] bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712) (GH-31941) * [3.10] bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 81b425d4dc43b60dd11a3e9abc5c84a4b8b384db) * Remove references to `reveal_type`, add new section on `self` types. (cherry picked from commit d5ed8a8258eaf7a241978b1b0aeb971108d0f7e0) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * remove unused susp allowlist Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [doc] configparser: avoid inline comments. (GH-31247)Miss Islington (bot)2022-03-231-2/+4
| | | | | | | | | People are testing those blocs with the default inline_comment_prefixes of None, leading to a: configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: '$ sign ($ is the only character that needs to be escaped)' (cherry picked from commit 3ac4e783e077ffd7b51c6acc1591002974644051) Co-authored-by: Julien Palard <julien@palard.fr>
* Fix typo in Path.iterdir docs (GH-31822)Miss Islington (bot)2022-03-231-1/+1
| | | | | (cherry picked from commit 795b365e8a6dfbeaa75780ed7807f8116f4537ca) Co-authored-by: Matt Williams <matt@milliams.com>
* bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)Miss Islington (bot)2022-03-223-0/+20
| | | | | | | | Co-authored-by: Piet Delport Co-authored-by: Hugo Lopes Tavares Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 7ba7eae50803b11766421cb8aae1780058a57e2b) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [3.9] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 ↵Hugo van Kemenade2022-03-225-6/+17
| | | | | | | | (GH-31891) (#31998) Document the deprecation of asyncore, asynchat, and smtpd with a slated removal in Python 3.12 thanks to PEP 594.. (cherry picked from commit 77473846439b8a3eae66de1a1cfe931619f38513) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578)Jeremy Kloth2022-03-222-183/+117
| | | | | | | Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly. This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion). We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment. Displaying load is really only helpful for buildbots running in multiprocess mode anyway.. Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
* [3.9] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (GH-32049)Andrew Svetlov2022-03-223-6/+36
| | | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 32e77154ddfc514a3144d5912bffdd957246fd6c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-12029: [doc] clarify that except does not match virtual subclasses of ↵Irit Katriel2022-03-212-5/+7
| | | | | the specified exception type (GH-32027) (GH-32035) (cherry picked from commit 45833b50f0ccf2abb01304c900afee05b6d01b9e)
* bpo-23691: Protect the re.finditer() iterator from re-entering (GH-32012)Miss Islington (bot)2022-03-213-4/+42
| | | | | (cherry picked from commit 08eb754d840696914928355014c2d424131f8835) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) (GH-32015)Gregory P. Smith2022-03-213-9/+28
| | | | | | | Inputs >= 4GiB to `binascii.crc32(...)` when compiled to use the zlib crc32 implementation (the norm on POSIX) no longer return the wrong result. (cherry picked from commit 4c989e19c84ec224655bbbde9422e16d4a838a80)
* bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974)Miss Islington (bot)2022-03-202-1/+4
| | | | | | | | | | | | | The `_SharedFile` tracks its own virtual position into the file as `self._pos` and updates it after reading or seeking. `tell()` should return this position instead of calling into the underlying file object, since if multiple `_SharedFile` instances are being used concurrently on the same file, another one may have moved the real file position. Additionally, calling into the underlying `tell` may expose thread safety issues in the underlying file object because it was called without taking the lock. (cherry picked from commit e730ae7effe4f13b24f1b5fb1fca005709c86acb) Co-authored-by: Kevin Mehall <km@kevinmehall.net>
* bpo-46013: Fix confusing kerning on period in docs (GH-29989) (GH-32006)Miss Islington (bot)2022-03-201-1/+1
| | | | | | | (cherry picked from commit 3af68fc77c528d4e7749046cf6e41fd79902e6e6) Co-authored-by: jmcb <joel.mcbride1@live.com> Co-authored-by: jmcb <joel.mcbride1@live.com>
* [3.10] bpo-47040: improve document of checksum functions (GH-31955) (GH-32002)Miss Islington (bot)2022-03-202-12/+9
| | | | | | | | | | Clarifies a versionchanged note on crc32 & adler32 docs that the workaround is only needed for Python 2 and earlier. Also cleans up an unnecessary intermediate variable in the implementation. Authored-By: Ma Lin / animalize Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commit 6d290d5862375799e997f1192ef56abca4e9182e) Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* [3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). ↵Miss Islington (bot)2022-03-194-10/+83
| | | | | | | (GH-31976) (GH-31981) (cherry picked from commit cd44afc573e2e2de8d7e5a9119c347373066cd10) (cherry picked from commit a5b7678a67ac99edd50822827b772e7d9afc8e64)
* bpo-39394: Improve warning message in the re module (GH-31988)Miss Islington (bot)2022-03-193-4/+11
| | | | | | | A warning about inline flags not at the start of the regular expression now contains the position of the flag. (cherry picked from commit 4142961b9f5ad3bf93976a6a7162f8049e354018) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44544: add textwrap placeholder arg (GH-27671)Miss Islington (bot)2022-03-191-2/+3
| | | | | (cherry picked from commit cb7874f49d3d55df73a3c529773af14e2e344fb7) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [3.9] bpo-14156: Make argparse.FileType work correctly for binary file modes ↵Serhiy Storchaka2022-03-183-17/+110
| | | | | | | | | | when argument is '-' (GH-13165) (GH-31979) Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb'). (cherry picked from commit eafec26ae5327bb23b6dace2650b074c3327dfa0) Co-authored-by: MojoVampire <shadowranger+github@gmail.com>
* [3.9] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). ↵Pablo Galindo Salgado2022-03-185-5/+11
| | | | | | | (GH-31975) (cherry picked from commit 8e3fde728f547f1d32bde8adf62b4c50bb877b9d) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.9] bpo-46421: Fix unittest filename evaluation when called as a module ↵Miss Islington (bot)2022-03-184-1/+16
| | | | | | | | (GH-30654) (GH-31970) (cherry picked from commit a0db11b10fca0fee6bb2b8d6277e266bad8c0fdb) Co-authored-by: Bader Zaidan <bader@zaidan.pw>
* [3.9] bpo-42782: fix broken shutil test (GH-31971)Jelle Zijlstra2022-03-181-3/+3
| | | | | We were using os_helper, which doesn't exist on 3.9. This wasn't caught because the test is only run as root. I confirmed that when run as root, the test previously failed and now passes.
* bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)Miss Islington (bot)2022-03-172-3/+5
| | | | | (cherry picked from commit dbbe4d2d0075fa0e95b069fb4780d79aae3514c7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-47038: Increase a test timeout for slow CI machines (GH-31951)Miss Islington (bot)2022-03-171-1/+1
| | | | | (cherry picked from commit a7c54148322781cb0f332d440a3454d550ef6414) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>