| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(cherry picked from commit 9cf8c42f3231d3f066670d087a997bd1278482a0)
Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
|
|
|
|
|
|
|
| |
`int` fails back to `__trunc__` is `__int__` isn't defined, so cover
that in the docs.
(cherry picked from commit 308eab979d153f1ab934383dc08bc4546ced8b6c)
Co-authored-by: Eric Appelt <eric.appelt@gmail.com>
|
|
|
|
|
|
|
| |
(GH-6046)
(cherry picked from commit f7a6ff6fcab32a53f262ba3f8a072c27afc330d7)
Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
|
|
|
|
|
|
|
| |
interpreter (GH-5960) (GH-6042)
(cherry picked from commit 7a7f100eb352d08938ee0f5ba59c18f56dc4a7b5)
Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
| |
* fix a typo: documention -> documentation
* fix the type of IPv?Network.hostmask
* add documentation about IPv?Network.netmask
* fix IPv6Network constructor doc that extended netmasks are not supported
(cherry picked from commit e405096ea91f516d411095b6fea4eec9668eac88)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
|
|
|
|
| |
(cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822)
Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
|
|
|
|
| |
(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)
Co-authored-by: Joongi Kim <me@daybreaker.info>
|
|
|
|
|
|
|
| |
tests. (GH-5930). (GH-5958)
(cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(#5504)" (#5911)
This reverts commit a71397fb6603d0fe673acd7765c74699cd28fe7b.
|
| |
|
|
|
|
|
|
|
|
|
| |
The ssl module now detects missing NPN support in LibreSSL.
Co-Authored-By: Bernard Spil <brnrd@FreeBSD.org>
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 6cdb7954b0a578d899e4b78b868ea59eef08480a)
Co-authored-by: Christian Heimes <christian@python.org>
|
|
|
|
|
|
|
| |
`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.
(cherry picked from commit 98f42aac23f3863973cb6e9964c5212cfd3a1d98)
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
|
|
|
|
|
|
|
| |
It's bad form to pin to an old version of TLS. ssl.SSLContext has the right
protocol default, so let's not pass anyway.
(cherry picked from commit e9edee0b65650c4f9db90cefc2e9a8125bad762c)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
|
|
|
|
| |
(cherry picked from commit 52c6b89796a7ec391db20281e05b256f57e97b35)
Co-authored-by: Harshul jain <harshulrobo@gmail.com>
|
|
|
|
|
|
|
|
| |
Adapt documentation for `copyright` and `credits` to reality. Previously, the documentation implied that all each of `copyright`,
`credits`, and `license`, would print a message to call the object in order to see the full text. In reality, only `license` exhibits this
behaviour, and `copyright` and `credit` print their full text either when printed, displayed, or called.
(cherry picked from commit 243d6d71265be1996a8326002deae429106a5fba)
Co-authored-by: Gerrit Holl <gerrit.holl@gmail.com>
|
|
|
|
|
|
|
| |
(GH-5712)
(cherry picked from commit 6887d86e9a04b9c5718b08e5d9e1ca3cc1f53721)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
|
|
|
| |
This note incorrectly stated that "Base64 has an expansion factor of 6
to 4" (it is actually 4 to 3). It was decided to remove the note.
(cherry picked from commit 88c38a4049ded0e1f197fec3e76be7c0c0e83d7a)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
|
|
|
| |
(GH-5547)
`arg_name` and `element_index` are defined as `digit`+ instead of `integer`.
(cherry picked from commit 7a561afd2c79f63a6008843b83733911d07f0119)
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
|
|
|
|
|
|
| |
The new link is given in a red box on the old page.
(cherry picked from commit 8d1f2f40389c476d9240ec87a33da0373597c6af)
Co-authored-by: sblondon <sblondon@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
(GH-5564) (GH-5573)
Fixes the documentation for `subprocess.check_output()` not mentioning that the encoding and errors parameters were added in 3.6.
(cherry picked from commit fc1ce810f1da593648b4d19e7d582a235ec1dd37)
Co-authored-by: Brice Gros <brice-gros@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
| |
mini-language doc (GH-5482) (GH-5525)
Changed the definition of width and precision from "integer" to "digit+" in format mini-language doc.
(cherry picked from commit 8b5fa289fdb04b6b919cf95fa99246aa872e47a8)
Co-authored-by: nathankerr96 <nathankerr96@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Fix typos found by codespell in docs, docstrings, and comments.
Fixes for the following files were in post-3.6 code and not backported:
Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py,
Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c.
(cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
|
|
|
|
|
| |
(cherry picked from commit 589c718a8e3bde017350f248f7f1c009240eb52b)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
| |
* Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages.
* Make sure ``__spec__.origin` matches ``__file__`` for namespace packages.
https://bugs.python.org/issue32303
https://bugs.python.org/issue32305.
(cherry picked from commit bbbcf8693b876daae4469765aa62f8924f39a7d2)
Co-authored-by: Barry Warsaw <barry@python.org>
|
|
|
|
|
|
|
|
|
| |
…rning (GH-5265) (GH-5500)
Modify RE examples in documentation to use raw strings to prevent DeprecationWarning.
Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka.
(cherry picked from commit 66771422d0541289d0b1287bc3c28e8b5609f6b4)
|
|
|
|
|
|
|
| |
(GH-5199). (GH-5471)
(cherry picked from commit 12e7cd8a51956a5ce373aac692ae6366c5f86584)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
(GH-5438)
(cherry picked from commit 9424dcbb3e20a26dfdd81659303b989f7d3da044)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
| |
(cherry picked from commit 2a3260bb030b0d4620242110c0ee5abc379afa8d)
|
|
|
|
| |
* bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser()
(cherry picked from commit d499031f5f33c3ef71be7c81ef52eee6b47c42e1)
|
|
|
|
|
| |
(GH-4056) (#5298)
(cherry picked from commit 131fd7f96c619bc7eaea956e45c6337175f4b27f)
|
|
|
|
|
|
|
|
|
|
| |
* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
int, float and complex to use _Py_GetLocaleconvNumeric()
internally.
(cherry picked from commit cb064fc2321ce8673fe365e9ef60445a27657f54)
|
|
|
|
|
| |
Clarify that on Windows, path must be a directory.
On Unix, path can be a file or a directory.
(cherry picked from commit ee3b83547c6b0cac1da2cb44aaaea533a1d1bbc8)
|
|
|
|
|
|
| |
`os.path.is*()` can return False if the file can't be accessed.
The behaviour is documented in details in `os.path.exists()`.
Link to `os.path.exists()` from `os.path.is*()`.
(cherry picked from commit b3dd18d4035803b50c65a434955966d1b3b1f363)
|
|
|
| |
(cherry picked from commit d37258dd2e189141906bd234385096cd8e885d8d)
|
|
|
|
|
| |
The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74fcfdec8f9e6157de2c366f2273de81677)
|
| |
|
|
|
| |
(cherry picked from commit a8d25a16452f7ee8dfc350cd028b3ae172d28ada)
|
|
|
|
| |
The built-in map() function collects function arguments lazily, but concurrent.futures.Executor.map() does so eagerly.
(cherry picked from commit a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d)
|
|
|
| |
(cherry picked from commit 6693d7af6670f8bda331e0b63bb77fce2e3efe9c)
|
|
|
| |
(cherry picked from commit 297fd876aad8ef443d8992618de22c46dbda258b)
|
|
|
| |
(cherry picked from commit 4f29f3c84b74de8c208980a14bc56bffa6363121)
|
|
|
| |
(cherry picked from commit c3e070f84931c847d1b35e7fb36aa71edd6215f6)
|
|
|
|
|
| |
Sequence.index method (GH-4277) (#4811)
(cherry picked from commit 5ce0a2a100909104836f53a2c8823006ec46f8ad)
|
|
|
|
|
|
| |
(#4796)
Original patch written by Martin Panter, enhanced by Sanyam Khurana.
(cherry picked from commit 1b74f9b77a6fa1d7828986cb79d5b10942ff9141)
|
|
|
|
|
| |
consistent with source. (GH-4765) (GH-4767)
(cherry picked from commit a9f8df646aac7fc94ced0aefd1ed2c8566d14d10)
|
|
|
|
|
|
|
|
|
|
| |
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior
* add test for blocking
* Update threading.rst
* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
(cherry picked from commit a0374dd34aa25f0895195d388b5ceff43b121b00)
|
|
|
| |
(cherry picked from commit ae342cf7deebdcf2035f4064609b32b2102dadcf)
|
|
|
| |
(cherry picked from commit c615be5166ed338c052fa67fe781b9bfe0dfb78c)
|
|
|
| |
(cherry picked from commit c172fc5031a4035986bef0b2fcef906706d7abf3)
|