summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the ↵Ashley Whetter2019-10-181-0/+10
| | | | | | | interpreter (GH-5960) (GH-16565) (cherry picked from commit 7a7f100eb352d08938ee0f5ba59c18f56dc4a7b5) Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
* bpo-32758: Warn that compile() can crash when compiling to an AST object ↵Ashley Whetter2019-10-181-0/+6
| | | | | | | (GH-6043) (GH-16566) (cherry picked from commit f7a6ff6fcab32a53f262ba3f8a072c27afc330d7) Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
* [2.7] bpo-36502: Update link to UAX GH-44, the Unicode doc on the UCD. ↵Benjamin Peterson2019-09-091-1/+1
| | | | | | | | | | | | (GH-15808) The link we have points to the version from Unicode 6.0.0, dated 2010. There have been numerous updates to it since then: https://www.unicode.org/reports/tr44/GH-Modifications Change the link to one that points to the current version. Also, use HTTPS.. (cherry picked from commit 64c6ac74e254d31f93fcc74bf02b3daa7d3e3f25) Co-authored-by: Greg Price <gnprice@gmail.com>
* [2.7] bpo-34410: Fix a crash in the tee iterator when re-enter it. ↵Serhiy Storchaka2019-09-091-0/+4
| | | | | | | (GH-15625) (GH-15740) RuntimeError is now raised in this case. (cherry picked from commit 526a01467b3277f9fcf7f91e66c23321caa1245d)
* bpo-37823: Fix open() link in telnetlib doc (GH-15281)Miss Islington (bot)2019-08-211-1/+1
| | | | | | Fixed wrong link to Telnet.open() method in telnetlib documentation. (cherry picked from commit e0b6117e2723327d6741d0aa599408514add5b30) Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
* [2.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError ↵David H2019-08-051-3/+3
| | | | | | | | in docs. (GH-15062). (GH-15133) (cherry picked from commit ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7) Co-authored-by: David H <dheiberg@mozilla.com>
* bpo-34369: make kqueue.control() docs better reflect that timeout is ↵Miss Islington (bot)2019-07-111-3/+4
| | | | | | | positional-only (GH-9499) (cherry picked from commit 79042ac4348ccc09344014f20dd49401579f8795) Co-authored-by: Tal Einat <taleinat@gmail.com>
* Document default parameter of .seek() in the signature. (GH-14691)Miss Islington (bot)2019-07-111-2/+2
| | | | | (cherry picked from commit 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)Miss Islington (bot)2019-07-071-1/+1
| | | | | (cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb) Co-authored-by: Hai Shi <shihai1992@gmail.com>
* bpo-37149: Replace dead link for online Tkinter reference (GH-14616)Miss Islington (bot)2019-07-061-2/+2
| | | | | | Also fix a name misspelling. (cherry picked from commit 45bc61b97178b27ae05bd3eb95481bf0325795bb) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [2.7] bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) ↵Miss Islington (bot)2019-06-301-0/+3
| | | | | | | | | | | | (GH-14475) * Added documentation for textwrap.dedent behavior. (cherry picked from commit eb97b9211e7c99841d6cae8c63893b3525d5a401) Co-authored-by: tmblweed <tmblweed@users.noreply.github.com> https://bugs.python.org/issue30754
* [2.7] Update link in colorsys docs to be https (GH-14062) (GH-14110)Alex Gaynor2019-06-181-1/+1
|
* Update outdated reference to Mercurial (GH-12857)Anthony Sottile2019-06-051-1/+1
|
* bpo-30134: fix BytesWarning doc, docstring and message (GH-12739)Inada Naoki2019-04-092-2/+2
|
* bpo-30134: add BytesWarning in warnings.rst (GH-12738)Inada Naoki2019-04-091-0/+3
|
* bpo-30134: add an explanation of BytesWarning (GH-1249)cocoatomo2019-04-091-0/+7
|
* bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)Miss Islington (bot)2019-03-251-12/+10
| | | | | | | | | | * bpo-34085: Improve wording on classmethod/staticmethod * Address comments from Éric * Address comments from Éric (cherry picked from commit 548cb6060ab9d5a66931ea2be4da08c2c72c9176) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-36216: Add check for characters in netloc that normalize to separators ↵Steve Dower2019-03-071-0/+20
| | | | (GH-12201)
* Fix the documentation for set.copy() (GH-12176)Miss Islington (bot)2019-03-071-1/+1
| | | | | | Remove 's' mention as there's no argument. (cherry picked from commit e942e7b5c91995ae1ad967ef2c0f116a5d8555de) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* [2.7] bpo-36019: Use pythontest.net in urllib network tests (GH-11941) ↵Stéphane Wirtel2019-03-051-0/+5
| | | | | | (GH-12177) Use test_support.TEST_HTTP_URL (pythontest.net) instead of http://www.example.com/.
* bpo-36089: Fix formatting/spelling on SimpleHTTPServer docs. (GH-11995)Alan Grgic2019-02-231-1/+1
|
* [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>