summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-32947: Fixes for TLS 1.3 and OpenSSL 1.1.1 (GH-8761) (GH-11876)stratakis2019-02-151-0/+9
| | | | | | | | | | | | | | | Backport of TLS 1.3 related fixes from 3.7. Misc fixes and workarounds for compatibility with OpenSSL 1.1.1 from git master and TLS 1.3 support. With OpenSSL 1.1.1, Python negotiates TLS 1.3 by default. Some test cases only apply to TLS 1.2. OpenSSL 1.1.1 has added a new option OP_ENABLE_MIDDLEBOX_COMPAT for TLS 1.3. The feature is enabled by default for maximum compatibility with broken middle boxes. Users should be able to disable the hack and CPython's test suite needs it to verify default options Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 2a4ee8aa01d61b6a9c8e9c65c211e61bdb471826)
* [2.7] bpo-28043: improved default settings for SSLContext (GH-10608)stratakis2019-02-151-0/+11
| | | | | | | | | The options OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 (except for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3) are set by default. The initial cipher suite list contains only HIGH ciphers, no NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2). (cherry picked from commit 358cfd426ccc0fcd6a7940d306602138e76420ae)
* [2.7] bpo-33570: TLS 1.3 ciphers for OpenSSL 1.1.1 (GH-6976) (GH-8760) ↵stratakis2019-02-151-5/+3
| | | | | | | | | | | | | (GH-10607) Change TLS 1.3 cipher suite settings for compatibility with OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers enabled by default. Also update multissltests to test with latest OpenSSL. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 3e630c541b35c96bfe5619165255e559f577ee71) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-34512: Document platform-specific strftime() behavior for non-ASCII ↵Miss Islington (bot)2019-01-121-0/+6
| | | | | | | format strings (GH-8948) (cherry picked from commit 1cffd0eed313011c0c2bb071c8affeb4a7ed05c7) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* [2.7] Correct a couple of unbalanced parenthesis. (GH-10779). (GH-10963)Andre Delfino2018-12-061-1/+1
| | | | (cherry picked from commit 55f41e45b4318cbe19209f5144641344d0049fb8)
* Fix typo in xml.dom.minidom documentation (GH-10956)Miss Islington (bot)2018-12-051-1/+1
| | | | | | | Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814. (cherry picked from commit 2d8f976cde4794d174b44ff7d5fd970aa89c65e8) Co-authored-by: E Kawashima <e-kwsm@users.noreply.github.com>
* [2.7] bpo-35250: Correct argument name "num" -> "btn" in turtle docs. ↵Serhiy Storchaka2018-12-051-4/+4
| | | | | | | (GH-10565). (GH-10943) (cherry picked from commit 4edeaeac4c194ba5d09187640b5cfca5e03be617) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
* [2.7] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814). ↵E Kawashima2018-12-011-1/+1
| | | | | | (GH-10827) (cherry picked from commit b7c2182604d5796b5af4c837991aa0b8c8a2d41f)
* Linkify SMTP.quit() in smtplib documentation. (GH-9785)Miss Islington (bot)2018-11-231-1/+1
| | | | | (cherry picked from commit ba57963a95a994947b8bec6869e810a74a751278) Co-authored-by: takey <taketakeyyy@gmail.com>
* [2.7] bpo-35035: Rename email.utils documentation to email.utils.rst ↵Julien Palard2018-11-222-1/+1
| | | | | (GH-10023) (GH-10667) https://bugs.python.org/issue35035
* [2.7] Grammar corrections in abc.rst (GH-10525). (GH-10535)Andrés Delfino2018-11-141-3/+3
| | | | | (cherry picked from commit 8e0b05e2f4b9fd703cbe1ae8d058852ef3781f44) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102)Miss Islington (bot)2018-11-071-1/+1
| | | | | (cherry picked from commit ae31e3fbf4e7def772fc1c94342d1011424fdc99) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Correct grammar mistakes in string.rst. (GH-9752)Miss Islington (bot)2018-11-071-2/+2
| | | | | (cherry picked from commit d64991031e4c86ce0331caac16770757511dd025) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-32804: Include the context parameter in urlretrieve documentation ↵Lysandros Nikolaou2018-11-011-2/+15
| | | | | | (GH-10203)
* bpo-34866: Add max_num_fields to cgi.FieldStorage (GH-9660) (GH-9969)matthewbelisle-wf2018-10-302-4/+16
| | | | | | Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by limiting the number of `MiniFieldStorage` objects created by `FieldStorage`. (cherry picked from commit 209144831b0a19715bda3bd72b14a3e6192d9cc1)
* bpo-27741: Better wording for datetime.strptime() (GH-9994)Miss Islington (bot)2018-10-291-1/+3
| | | | | (cherry picked from commit c0799ec973530ad2492bb1d6c7287ffc428f0348) Co-authored-by: Gus Goulart <augusto@goulart.me>
* [2.7] unittest documentation: Spell pytest without the dot (GH-9820) (GH-10157)Mariatta2018-10-271-1/+1
| | | | | | Referring to ``pytest`` as ``py.test`` is deprecated.. (cherry picked from commit d855f2fdbd73016ece9b58e6f6ac26cf986fabf6) Co-authored-by: Andreas Pelme <andreas@pelme.se>
* bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)Miss Islington (bot)2018-10-271-3/+4
| | | | | | Specify that blocks are non-overlapping. Change '!=' to '<'. (cherry picked from commit d9bff4e81b8ca36fe6c4e90c0b9cf02bc020e713) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.7] bpo-34789: xml.sax.make_parser expects a list not just any sequence ↵Miss Islington (bot)2018-10-261-1/+1
| | | | | | | (GH-9542) (cherry picked from commit 1487b651caa62647f8f8c9e8432e475e3566130c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-34576 : Backport eeab510 2.7 (#10115)Senthil Kumaran2018-10-261-0/+4
| | | | | | | | | * bpo-34576 - Fix the formatting for security considerations in http.server.rst (#10005) * Address review comment.. (cherry picked from commit eeab510bb7e51802c18b3770cbb23ae0ca91da6b) Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
* [2.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) ↵Zsolt Cserna2018-10-241-3/+5
| | | | | | | | | | | | | | (GH-10071) Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring. (cherry picked from commit 4f399be0e70d8b5516b6213568b7665765bb3114)
* [2.7] bpo-34748: link to :ref:`partial-objects` in functools.partial doc. ↵Xiang Zhang2018-10-231-3/+3
| | | | | | | (GH-9809) (cherry picked from commit 83a0765) Co-authored-by: Andrei Petre p31andrei@gmail.com
* bpo-32798: Add restriction on the offset parameter for mmap.flush in the ↵Miss Islington (bot)2018-10-201-4/+5
| | | | | | | | | | docs (GH-5621) Add restriction on the offset parameter for mmap.flush. Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix. (cherry picked from commit 027664a3d5ebad575aafe5fcc572e3b05f7f24e5) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [2.7] bpo-13407: Mention that bz2/tarfile doesn't support multi-stream bzip2 ↵Andrés Delfino2018-09-292-0/+8
| | | | | | | | files (GH-8428) * bpo-13407: Mention that tarfile doesn't support multistream bzip2 files * Add mention to bz2 module also
* [2.7] bpo-33216: Clarify the documentation for CALL_FUNCTION_* (GH-8338) ↵Serhiy Storchaka2018-09-171-20/+53
| | | | | | | | (GH-8783) (cherry picked from commit 76aa2c0a9a8dd3ac90b91e7342c8ce8125bf21f9) Co-authored-by: larryhastings <larry@hastings.org>
* bpo-34500: Fix ResourceWarning in difflib.py (GH-8926)Mickaël Schoentgen2018-09-031-2/+4
| | | | | The change to Tools/scripts/diff.py effectively backports part of a2637729f23dc993e820fd92f0d1759ad714c9b2. The test code changed in Doc/library/difflib.rst is not present in current 3.x.
* Make it more clear that setUpClass runs before each class, not "class run" ↵Miss Islington (bot)2018-08-231-1/+1
| | | | | | | (GH-8844) (cherry picked from commit c33bb5d4016fb2fc8f3b6d4b0c14b73b33cdb3cf) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* [2.7] bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)Terry Jan Reedy2018-08-061-3/+3
| | | | | | | The change in the mini language floating point and decimal table is consistent with 'Exponential notation' and clarifies that we are referring to the output notation, not an object type. (cherry picked from commit 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5)
* Fix site module documentation. (GH-8441)Miss Islington (bot)2018-07-241-1/+1
| | | | | | The script will exit with the number 0 (zero), instead of the letter O. (cherry picked from commit 95d34c2a37f4c5046f6439abef881925d34fe4ac) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* [2.7] bpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) ↵Tal Einat2018-07-231-12/+18
| | | | | | | (GH-8427) (cherry picked from commit bde782bb594edffeabe978abeee2b7082ab9bc2a) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* Clarify ValueError's broad applicability (GH-8313) (GH-8316)Miss Islington (bot)2018-07-171-1/+1
| | | | | (cherry picked from commit feabae961707b00008c15a31352e458f4e8b3a6c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)Benjamin Peterson2018-07-071-2/+2
| | | | | (cherry picked from commit 9c5ba097485c8c643b670acd4026f4382bc92f4b) Co-authored-by: Marcin Niemira <marcin@niemira.net>
* [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is ↵Andrés Delfino2018-07-071-1/+1
| | | | | | | optional (GH-7510). (GH-8171) (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34018: Doc'd that type names of SQLite converters are case-insensitive. ↵Miss Islington (bot)2018-07-031-2/+2
| | | | | | | (GH-8042) (GH-8066) (cherry picked from commit 831c29721dcb1b768c6315a4b8a4059c4c97ee8b) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* [2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905)Tal Einat2018-06-251-1/+1
| | | | | (cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-33943: Add references in the docs for logging.basicConfig ↵Tal Einat2018-06-251-11/+11
| | | | | | | | | | (GH-7858) (GH-7902) Adds references to info about file modes, `time.strftime()`, string formatting syntaxes, and logging levels. (cherry picked from commit a8ddf85a84364d2c660e6670a7e06621993d1fdc) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-33885: Replace "hook function" with "callable" (GH-7765). (#7885)Andrés Delfino2018-06-241-2/+2
| | | | | (cherry picked from commit c45cb479074b5d25f0d382d3109f527520a9f03c) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* Fix four spelling typos in documentation (GH-7753)Xtreak2018-06-193-3/+3
|
* bpo-33892: Doc: Use gender neutral words (GH-7770)Andrés Delfino2018-06-183-6/+6
| | | | | (cherry picked from commit 5092439c2cb32112a5869b138011d38491db90a9) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-33828: Clarify auto-numbering is not available to ↵Xiang Zhang2018-06-131-2/+3
| | | | | | string.Formatter. (GH-7668) (GH-7676) string.Formatter auto-numbering feature was added in 3.4 and not available in 2.7. Make the documentation unambiguous.
* [2.7] Add version change for OpenSSL 1.1.0 compatibility (GH-7541)Mayank Singhal2018-06-091-0/+3
|
* bpo-33600: document that platform.linux_distribution() has been removed ↵Timo Furrer2018-06-051-0/+4
| | | | (GH-7281)
* bpo-27902: Add compatibility note to Profile docs (GH-7295)Miss Islington (bot)2018-06-041-5/+6
| | | | | (cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230) Co-authored-by: Tobias Kunze <r@rixx.de>
* bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)Miss Islington (bot)2018-06-041-6/+7
| | | | | | The bytes parameter uses big endian. (cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83) Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
* bpo-23495: Correct the documentation for writerows() of csv Writer objects ↵Miss Islington (bot)2018-06-021-2/+3
| | | | | | | | (GH-6316) `writerows()` takes an iterable. (cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [2.7] bpo-33503: Fix the broken pypi link in the source and the ↵Stéphane Wirtel2018-05-1610-11/+10
| | | | | | | documentation (GH-6814). (GH-6905) (cherry picked from commit 19177fbd5d6d9b29ccc302d65f9d9417ece082ce) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
* bpo-22069: Update TextIO documentation (GH-6609)Miss Islington (bot)2018-05-141-1/+1
| | | | | | Clarify that flush is implied when the call to write contains a newline character. (cherry picked from commit 7ffd4c58fae08b29259eebd6cbcd2287820b14e8) Co-authored-by: Elena Oat <oat.elena@gmail.com>
* [2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() ↵Bo Bayles2018-05-051-7/+11
| | | | | | | | (GH-6223) (GH-6646) (cherry picked from commit 9f3535c9cde8813ce631d6ebe4d790682f594828) Co-authored-by: Bo Bayles <bbayles@gmail.com>
* Fix reference to exceptions in multprocessing docs. (GH-6647)Bo Bayles2018-04-301-2/+15
|
* [2.7] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (GH-6607)Andrés Delfino2018-04-261-18/+28
| | | | | | (cherry picked from commit 67a8f4fed3169e1b8c947c10f6e06863e399ae32) Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>