summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-37228: Fix loop.create_datagram_endpoint()'s usage of SO_REUSEADDR ↵Ned Deily2019-12-111-5/+19
| | | | | | | (GH-17311) (GH-17570) (cherry picked from commit ab513a38c98695f271e448fe2cb7c5e39eeaaaaf) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* bpo-38916: Document array.array deprecation (GH-17523)Miss Islington (bot)2019-12-091-0/+4
| | | | | | | array.array: Document that tostring() and fromstring() deprecated aliases will be removed in Python 3.9. (cherry picked from commit 0381ea79ac2da03179c8512c581cac588b69cff9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.7] bpo-38820: OpenSSL 3.0.0 compatibility. (GH-17190) (GH-17500)Miss Islington (bot)2019-12-071-0/+3
| | | | | | | | | | | | | | | | | | | | | test_openssl_version now accepts version 3.0.0. getpeercert() no longer returns IPv6 addresses with a trailing new line. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38820 (cherry picked from commit 2b7de6696bf2f924cd2cd9ff0a539c8aa37c6244) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue38820 Automerge-Triggered-By: @tiran
* bpo-27873: Update docstring for multiprocessing.Pool.map (GH-17436)Miss Islington (bot)2019-12-031-1/+2
| | | | | | | | | | Update docstring for `multiprocessing.Pool.map` to mention `pool.starmap()`. Prev PR: https://github.com/python/cpython/pull/17367 @aeros https://bugs.python.org/issue27873 (cherry picked from commit eb48a451e3844185b9a8751c9badffbddc89689d) Co-authored-by: An Long <aisk@users.noreply.github.com>
* document threading.Lock.locked() (GH-17427)Miss Islington (bot)2019-12-011-0/+4
| | | | | (cherry picked from commit fdafa1d0ed0a8930b52ee81e57c931cc4d5c2388) Co-authored-by: idomic <michael.ido@gmail.com>
* bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400)Inada Naoki2019-11-281-2/+2
| | | | | | | SpooledTemporaryFile.rollback() might cause data corruption when it is in text mode. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>. (cherry picked from commit ea9835c5d154ab6a54eed627958473b6768b28cc)
* [3.7] bpo-38862: IDLE Strip Trailing Whitespace fixes end newlines ↵Terry Jan Reedy2019-11-271-1/+2
| | | | | | | | (GH-17366) (#17379) Extra newlines are removed at the end of non-shell files. If the file only has newlines after stripping other trailing whitespace, all are removed, as is done by patchcheck.py. (cherry picked from commit 6bf644ec82f14cceae68278dc35bafb00875efae) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-21063: Improve module synopsis for distutils (GH-17363) (#17381)Miss Islington (bot)2019-11-264-4/+4
| | | | | (cherry picked from commit f8a6316778faff3991144c3aec4fa92d7b30a72b) Co-authored-by: Sanchit Khurana <54467174+GeniusLearner@users.noreply.github.com>
* Remove use of deprecated `array.fromstring` method (GH-17332)Miss Islington (bot)2019-11-261-2/+2
| | | | | (cherry picked from commit 386d00cc341b549800776b906bfc6b20ea40c7db) Co-authored-by: David Coles <coles.david@gmail.com>
* closes bpo-29275: Remove Y2K reference from time module docs (GH-17321)Miss Islington (bot)2019-11-221-10/+5
| | | | | | | | | The Y2K reference is not needed as it only points out that Python's use of C standard functions doesn't generally suffer from Y2K issues; the point regarding conventions for conversion of 2-digit years in :func:`strptime` is still valid. (cherry picked from commit 42bc60ead39c7be9f6bb7329977826e962f601eb) Co-authored-by: Callum Ward <wards.callum@gmail.com>
* bpo-36277: Add document for pdb debug and retval commands (GH-12872)Miss Islington (bot)2019-11-211-0/+8
| | | | | | | | https://bugs.python.org/issue36277 Automerge-Triggered-By: @csabella (cherry picked from commit 9391f6c3ef24f7962c534c42ccb792debdbef509) Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
* Correct the description of the 3.7 change in urllib.parse.quote (GH-17065)Miss Islington (bot)2019-11-181-1/+1
| | | | | | `~` is now treated as an unreserved character (i.e. it doesn't get quoted), not a reserved one. (cherry picked from commit f49f6baa6bf7916ac039194c24b59d2eff5b180a) Co-authored-by: Роман Донченко <dpb@corrigendum.ru>
* bpo-38678: Improve argparse example in tutorial (GH-17207) (GH-17213)Miss Islington (bot)2019-11-181-1/+3
| | | | | (cherry picked from commit 04c79d6088a22d467f04dbe438050c26de22fa85) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.7] bpo-38738: Fix formatting of True and False. (GH-17083) (GH-17128)Serhiy Storchaka2019-11-1235-154/+154
| | | | | | | | | | * "Return true/false" is replaced with "Return ``True``/``False``" if the function actually returns a bool. * Fixed formatting of some True and False literals (now in monospace). * Replaced "True/False" with "true/false" if it can be not only bool. * Replaced some 1/0 with True/False if it corresponds the code. * "Returns <bool>" is replaced with "Return <bool>". (cherry picked from commit 138ccbb02216ca086047c3139857fb44f3dab1f9)
* [3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121)Miss Islington (bot)2019-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | Updates documentation around email.utils.parsedate_tz(). Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```. This is no longer true since Python 3.3 https://bugs.python.org/issue38421 (cherry picked from commit a12255d8def0c82560545e66c1be981a447751c3) Co-authored-by: David K <dave@paddez.com> https://bugs.python.org/issue38421 Automerge-Triggered-By: @encukou
* bpo-38771: Explict test for None in code example (GH-17108) (GH-17110)Miss Islington (bot)2019-11-121-1/+1
| | | | | (cherry picked from commit 98480cef9dba04794bd61c7e7cca643d384c8c35) Co-authored-by: Jonathan Scholbach <j.scholbach@posteo.de>
* bpo-38696: Fix usage example of HTTPStatus (GH-17066)Miss Islington (bot)2019-11-061-1/+1
| | | | | (cherry picked from commit 56698d57691af2272f695f8c17c835ed99545cde) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* Update the URL for the requests package (GH-17006)Miss Skeleton (bot)2019-10-312-2/+2
| | | | | | Change the url from docs.python-requests.org to requests.readthedocs.io (cherry picked from commit 112f2b805bc83429e8a66a54d088bbefc921abb7) Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
* [3.7] bpo-38600: NULL -> ``NULL``. (GH-17001) (GH-17004)Serhiy Storchaka2019-10-304-9/+9
| | | | | Also fix some other formatting. (cherry picked from commit e835b31d2b212c3c7820364398979cae2a9740b2)
* [3.7] bpo-38600: Change the mark up of NULL in the C API documentation. ↵Serhiy Storchaka2019-10-301-1/+1
| | | | | | | (GH-16950) (GH-17000) Replace all *NULL* with ``NULL``. (cherry picked from commit 25fc088607c855060ed142296dc1bd0125fad1af)
* bpo-37330: open(): "U" mode is removed in Python 3.9 (GH-16972)Miss Skeleton (bot)2019-10-291-1/+1
| | | | | | Update open() documentation. (cherry picked from commit 1d2862a323ae1387e306942253b1e487018e2b7f) Co-authored-by: Victor Stinner <vstinner@python.org>
* Remove doc reference to unmaitained Nose package (GH-16849)Miss Islington (bot)2019-10-191-2/+2
| | | | | | The Nose package is no longer maintained. (cherry picked from commit 88eeda6311a8e3bf57136da5f73c70bc91ad79f3) Co-authored-by: Jon Dufresne <jon.dufresne@gmail.com>
* bpo-28556: Remove another mention of metaclass of Generic in typing docs ↵Miss Islington (bot)2019-10-131-2/+2
| | | | | | | | | | (GH-16743) Metaclass was removed in Python 3.7 (there is already a `versionchanged` item about this). https://bugs.python.org/issue28556 (cherry picked from commit 8144095707f87bdee6f3e1bbb15283ea61381be6) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)Miss Islington (bot)2019-10-111-2/+2
|
* bpo-32996: Documentation fix-up. (GH-16646)Miss Islington (bot)2019-10-101-3/+4
| | | | | | | | | PR GH-4906 changed the typing.Generic class hierarchy, leaving an outdated comment in the library reference. User-defined Generic ABCs now must get a abc.ABCMeta metaclass from something other than typing.Generic inheritance. (cherry picked from commit d47f0dd2e85ce032aebfedbde18cdb2e728fa79f) Co-authored-by: M. Eric Irrgang <mei2n@virginia.edu>
* bpo-36953: Delay removal of ABCs from collections. (GH-13409)Miss Islington (bot)2019-10-091-2/+2
| | | | | | | | | Bump the removal to 3.9, indicate collections.abc available since 3.3, replace version-changed directive to deprecated-removed. https://bugs.python.org/issue36953 (cherry picked from commit eea47e09394dfb64d3a59a601d947d25bb1bdc96) Co-authored-by: Matthias Bussonnier <mbussonnier@ucmerced.edu>
* [3.7] bpo-38294: Add list of no-longer-escaped chars to re.escape ↵Ricardo Bánffy2019-10-081-3/+5
| | | | | | | | | | documentation. (GH-16442) (GH-16647) Prior to 3.7, re.escape escaped many characters that don't have special meaning in Python, but that use to require escaping in other tools and languages. This commit aims to make it clear which characters were, but are no longer escaped. (cherry picked from commit 15ae75d660befe643ed42eb2707a557cea97256c)
* bpo-26510: Add versionchanged for required arg of add_subparsers (GH-16588)Miss Islington (bot)2019-10-071-1/+4
| | | | | | | | | | The `required` argument to `argparse.add_subparsers` was added in GH-3027. This PR specifies the earliest version of Python where it is available. https://bugs.python.org/issue26510 Automerge-Triggered-By: @merwok (cherry picked from commit 9e71917e0290972f65711f75510078f799cf0b59) Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* bpo-38235: Correct some arguments names in logging documentation (GH-16571) ↵Miss Islington (bot)2019-10-041-17/+17
| | | | | | | (GH-16577) (cherry picked from commit 3142c667b50254daaa28f22c79bdda177136bd03) Co-authored-by: Ashley Whetter <AWhetter@users.noreply.github.com>
* Correct typos in the codecs module documentation (GH-15135)Miss Islington (bot)2019-10-011-60/+61
| | | | | (cherry picked from commit 891e9e3b44c99d643dc309a4e63082451271b136) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Fix and improve `asyncio.run()` docs (GH-16403) (GH-16505)Miss Islington (bot)2019-10-011-4/+2
| | | | | (cherry picked from commit e407013089259e4c0b271703e1975bbcd578a2d5) Co-authored-by: Kyle Stanley <aeros167@gmail.com>
* Doc: Use the `with` statement in the first example of the ftplib doc. ↵Miss Islington (bot)2019-09-261-1/+2
| | | | | | | (GH-16271) (GH-16413) (cherry picked from commit 5d326abf2cb4891b78d9319a81bffb3974b5b745) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-38255: super() can search attributes as well as methods (GH-16368) ↵Miss Islington (bot)2019-09-251-0/+4
| | | | | | | | (GH-16392) Improvement suggested by Géry Ogam. (cherry picked from commit 15ccc4fac09b866d61b069c6c136aabfe4bac09c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-38260: Add Docs on asyncio.run (GH-16337)Miss Islington (bot)2019-09-251-0/+12
| | | | | | | | | | Add docs about return and raise exception on asyncio.run https://bugs.python.org/issue38260 Automerge-Triggered-By: @asvetlov (cherry picked from commit 17deb16883fa574a86e42551cc37f044182347ad) Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
* bpo-37937: Mention frame.f_trace in sys.settrace docs (GH-15439)Miss Islington (bot)2019-09-201-0/+11
| | | | | | | | Mention frame.f_trace in sys.settrace docs, as well as the fact you still need to call `sys.settrace` to enable the tracing machinery before setting `frame.f_trace` will have any effect. (cherry picked from commit 9c2682efc69568e1b42a0c1759489d6f2e3b30ea) Co-authored-by: Ram Rachum <ram@rachum.com>
* bpo-37353: Updated parser note about source code compatibility(GH-14277)Miss Islington (bot)2019-09-201-1/+2
| | | | | (cherry picked from commit 062cfe3b11c61d03ccc2915e360f9b0d80e23642) Co-authored-by: Prateek Nayak <45075669+Kriyszig@users.noreply.github.com>
* Doc: Clarify dict equality irrespective of ordering. (GH-16266)Miss Islington (bot)2019-09-191-1/+1
| | | | | (cherry picked from commit 3171d67a6aaf7fe88685b3a80644f0284686ef63) Co-authored-by: toonarmycaptain <toonarmycaptain@hotmail.com>
* bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16260)Miss Islington (bot)2019-09-181-2/+4
| | | | | | | dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7. (cherry picked from commit 064e1e384120635330493abf300b1113eadd904c) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* Doc: Fix grammar/spelling in ssl.VERIFY_CRL_CHECK_LEAF docs (GH-16221)Miss Islington (bot)2019-09-171-2/+2
| | | | | (cherry picked from commit 219fb9d65ef7e5363eccc9dde0988bb085db1c86) Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
* bpo-38192: Fix remaining passing of "loop" in the protocol examples (GH-16202)Miss Islington (bot)2019-09-171-5/+6
| | | | | | | | See https://bugs.python.org/issue38192 . https://bugs.python.org/issue38192 (cherry picked from commit 5d359cc62e0244e1fd8d17146a4135079d6843bf) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
* Doc: Add list(dict) in stdtypes library (GH-16209) (GH-16211)Miss Islington (bot)2019-09-171-0/+4
| | | | | (cherry picked from commit 63dedef48bba9d54f13b958237696505fa665796) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* bpo-28556: Update the opening note in typing docs (GH-16204)Miss Islington (bot)2019-09-161-4/+3
| | | | | | This PR replaces the old note mentioning that `typing` is a provisional module with a new one mentioning types are not enforced at runtime. I am not sure if there was any official announcement about making `typing` non-provisional, but _de-facto_ no new features were added during Python 3.7, and no backwards incompatible changes were made except for few small things that were considered bugs. (cherry picked from commit 81528ba2e81c39f4d6bca5b785e818c7d08b8501) Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
* bpo-38178: Don't explicitly pass "loop" to EchoClientProtocol. (GH-16159)Miss Islington (bot)2019-09-151-7/+7
| | | | | | https://bugs.python.org/issue38178 (cherry picked from commit c717c73fa33a2f3591442059eaf6e7a673e2c725) Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
* Doc: Fix link to window.getch in curses documentation (GH-16132)Miss Islington (bot)2019-09-141-1/+1
| | | | | (cherry picked from commit a26ace19bddea2d7a999a6de8286b3f27b132f35) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* bpo-32790: Add info about alt format using GH- for 'g' in chart (GH-6624)Miss Islington (bot)2019-09-131-1/+2
| | | | | (cherry picked from commit d44542f9a231bf725ecd82eb640a672c759a8227) Co-authored-by: bchhabra2490 <bchhabra2490@gmail.com>
* bpo-35325: Doc: imp.find_module() return value documentation discrepancy ↵Miss Islington (bot)2019-09-121-6/+5
| | | | | | | (GH-11040) (cherry picked from commit 967b84c913c7b09ae2fc86272cb9373415e2beaf) Co-authored-by: Windson yang <wiwindson@outlook.com>
* bpo-32008: Prefer client or TLSv1_2 in examples (GH-5797) (GH-16026)Miss Islington (bot)2019-09-121-8/+14
| | | | | | | | Prefer client or TLSv1_2 in examples Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 894d0f7d5542ee04556ec1bee8c58506f7c916d4) Co-authored-by: Christian Heimes <christian@python.org>
* Doc: Update pickle.rst (GH-14128) (GH-16015)Miss Islington (bot)2019-09-121-17/+19
| | | | | | * Edits for readability and grammar (cherry picked from commit 362f5350eb5e2c7bfb0b0a8c306a2e128c3aee93) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) ↵Paul Ganssle2019-09-121-6/+6
| | | | (GH-15962)
* Doc: Fix missing negation. (GH-14640) (GH-15985)Miss Islington (bot)2019-09-111-2/+2
| | | | | | | | Reported by Hug Capella on docs@. Automerge-Triggered-By: @matrixise (cherry picked from commit 1fae844451b120b93880d9360f288c70e125520c) Co-authored-by: Julien Palard <julien@palard.fr>