summaryrefslogtreecommitdiffstats
path: root/Doc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33045: Fix typos in SSL documentation (GH-6065)Miss Islington (bot)2018-03-111-2/+2
| | | | | (cherry picked from commit 9cf8c42f3231d3f066670d087a997bd1278482a0) Co-authored-by: Matt Eaton <agnosticdev@gmail.com>
* bpo-26701: Improve documentation for the rounding special methods. (GH-6054)Miss Islington (bot)2018-03-101-12/+18
| | | | | (cherry picked from commit 496431ffb6c29719332bf2af773349e8dd85e45a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-26701: Add documentation for __trunc__ (GH-6050)Miss Islington (bot)2018-03-103-3/+15
| | | | | | | `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>
* Warn that compile() can crash when compiling to an AST object (GH-6043) ↵Miss Islington (bot)2018-03-091-0/+6
| | | | | | | (GH-6046) (cherry picked from commit f7a6ff6fcab32a53f262ba3f8a072c27afc330d7) Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
* bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the ↵Miss Islington (bot)2018-03-091-0/+10
| | | | | | | interpreter (GH-5960) (GH-6042) (cherry picked from commit 7a7f100eb352d08938ee0f5ba59c18f56dc4a7b5) Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
* controlflow: Use full example for "5 through 9" (GH-5907)Miss Islington (bot)2018-03-091-1/+1
| | | | | | | Replace example result of "5 through 9" with complete list: "5, 6, 7, 8, 9". This format is more consistent with the surrounding examples. (cherry picked from commit 83d7062d2dc5eacfef578e072bca4747c346fdae) Co-authored-by: Steven M. Vascellaro <S.Vascellaro@gmail.com>
* Fix some ipaddress documentation errors (GH-6021)Miss Islington (bot)2018-03-081-8/+12
| | | | | | | | | * 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>
* bpo-32969: Expose some missing constants in zlib and fix the doc (GH-5988)Miss Islington (bot)2018-03-071-19/+22
| | | | | (cherry picked from commit bc3f2289b9007396bfb7f986bee477b6176c1822) Co-authored-by: Xiang Zhang <angwerzx@126.com>
* Fix missing coroutine declaration in the asyncio documentation. (GH-5964)Miss Islington (bot)2018-03-031-1/+1
| | | | | (cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab) Co-authored-by: Joongi Kim <me@daybreaker.info>
* [3.6] bpo-32964: Reuse a testing implementation of the path protocol in ↵Serhiy Storchaka2018-03-031-0/+7
| | | | | | | tests. (GH-5930). (GH-5958) (cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Revert "[3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) ↵Barry Warsaw2018-02-261-1/+1
| | | | | (#5504)" (#5911) This reverts commit a71397fb6603d0fe673acd7765c74699cd28fe7b.
* [3.6] bpo-32394: Remove some TCP options on older version Windows. (GH-5585)animalize2018-02-261-0/+4
|
* bpo-31454: Include information about "import X as Y" in Modules tutorial ↵Miss Islington (bot)2018-02-251-0/+19
| | | | | | | (GH-4041) (cherry picked from commit fbee88244e8921afdb29fde51a9a010a8ae18277) Co-authored-by: Mario Corchero <mariocj89@gmail.com>
* bpo-25059: Clarify the print separator usage in tutorial (GH-5879)Miss Islington (bot)2018-02-251-1/+1
| | | | | | By default `print` adds spaces between its arguments. (cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* [3.6] bpo-30622: Improve NPN support detection (GH-5859) (#5861)Christian Heimes2018-02-251-0/+17
| | | | | | | | | 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>
* bpo-17232: Clarify docs for -O and -OO command line options (GH-5839)Miss Islington (bot)2018-02-251-2/+13
| | | | | | The 'optimization' is for space in the executable file, not for run time. (cherry picked from commit 186b606d8a2ea4fd51b7286813302c8e8c7006cc) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)Miss Islington (bot)2018-02-231-1/+1
| | | | | | | `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>
* bpo-32087: Doc: Make "deprecated-removed" directive translatable (GH-4473)Miss Islington (bot)2018-02-232-5/+8
| | | | | (cherry picked from commit 0febc053736112d7bb9081742b3ac0ece7b973e7) Co-authored-by: cocoatomo <cocoatomo77@gmail.com>
* bpo-30449: Improve __slots__ documentation (GH-1819)Miss Islington (bot)2018-02-221-14/+15
| | | | | | (cherry picked from commit 2b44e302ec3079363c4d5c875677945953705c58) Co-authored-by: Aaron Hall, MBA <aaronchall@yahoo.com>
* bpo-32008: don't use PROTOCOL_TLSv1 in example (GH-5789)Miss Islington (bot)2018-02-211-2/+2
| | | | | | | 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>
* bpo-28886: doc: Move deprecated abc decorators to separate section (GH-176)Miss Islington (bot)2018-02-211-22/+17
| | | | | (cherry picked from commit 52c6b89796a7ec391db20281e05b256f57e97b35) Co-authored-by: Harshul jain <harshulrobo@gmail.com>
* bpo-32540: Update venv documentation (GH-5736)Miss Islington (bot)2018-02-211-4/+3
| | | | | | | If the directory already exists, it will be re-used. (cherry picked from commit e8eb972514cad6086b752754c1d34d703c04dd82) Co-authored-by: TROUVERIE Joachim <joachim.trouverie@linoame.fr>
* bpo-32500: Correct the documentation for PySequence_Size() and ↵Miss Islington (bot)2018-02-201-3/+2
| | | | | | | | PySequence_Length() (GH-5767) Dropped the part that says: "For objects that do not provide sequence protocol". (cherry picked from commit 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* DOC: fix documentation for copyright and credits (GH-5706)Miss Islington (bot)2018-02-171-3/+7
| | | | | | | | 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>
* bpo-32860: Fix a missing asterisk in the documentation for glob.iglob() ↵Miss Islington (bot)2018-02-171-1/+1
| | | | | | | (GH-5712) (cherry picked from commit 6887d86e9a04b9c5718b08e5d9e1ca3cc1f53721) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Fix installation instructions for *nix (GH-5605)Miss Islington (bot)2018-02-141-2/+4
| | | | | | | Remove pkg_add -r python from FreeBSD installation section. Moved to OpenBSD. (cherry picked from commit 3384d38d51a2c3450e742175db5d6d638fa5d2eb) Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
* bpo-27846: Delete incorrect note in base64 docs (GH-5666)Miss Islington (bot)2018-02-141-8/+0
| | | | | | | | 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>
* bpo-32720: Fixed the replacement field grammar documentation. (GH-5544) ↵Miss Islington (bot)2018-02-121-2/+2
| | | | | | | | (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>
* bpo-32800: Update link to w3c doc for xml default namespaces (GH-5609) GH-5612)Miss Islington (bot)2018-02-111-1/+1
| | | | | | 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>
* [3.6] Make formatting of some return codes conforming to the general style. ↵Serhiy Storchaka2018-02-095-16/+16
| | | | | | | (GH-5587). (GH-5598) (cherry picked from commit 5bb0005f9ff768ac443924b4bb26c3818ce8dc5a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-6135: Fix subprocess.check_output doc to mention changes in 3.6 ↵Miss Islington (bot)2018-02-071-0/+3
| | | | | | | | (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>
* [3.6] bpo-8722: Document __getattr__ behavior with AttributeError in ↵Miss Islington (bot)2018-02-051-4/+6
| | | | | | | | | | property (GH-5542) When `__getattr__` is implemented, attribute lookup will always fall back to that, even if the initial failure comes from `__getattribute__` or a descriptor's `__get__` method (including property methods). (cherry picked from commit d1f318105b8781b01f3507d5cb0fd841b977d5f2) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* Fix typo -- missing "not" (GH-5528) (GH-5531)Miss Islington (bot)2018-02-041-1/+1
|
* bpo-32720: Fixed the definition for width and precision in format ↵Miss Islington (bot)2018-02-041-2/+2
| | | | | | | | 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>
* [3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)Terry Jan Reedy2018-02-042-3/+2
| | | | | | | | | 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)
* Update Doc build for split off of 3.7 branchNed Deily2018-02-032-2/+4
|
* bpo-32739: Show default value for rotate() (GH-5485) (GH-5515)Miss Islington (bot)2018-02-031-4/+7
| | | | | (cherry picked from commit 589c718a8e3bde017350f248f7f1c009240eb52b) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.6] bpo-32303 - Consistency fixes for namespace loaders (GH-5481) (#5504)Barry Warsaw2018-02-031-1/+1
| | | | | | | | | | * 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>
* [3.6] bpo-32614: Modify re examples to use a raw string to prevent wa… ↵Terry Jan Reedy2018-02-023-8/+23
| | | | | | | | | …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)
* [3.6] bpo-32565: Add missed versionadded directives for all new opcodes. ↵Serhiy Storchaka2018-02-011-0/+32
| | | | | | | (GH-5199). (GH-5471) (cherry picked from commit 12e7cd8a51956a5ce373aac692ae6366c5f86584) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464) ↵Miss Islington (bot)2018-01-311-1/+1
| | | | | | | | | (GH-5465) The f-string example for using datetime format specifier does not match the given output. Changed the format from %b to %B so it matches the output of "January". (cherry picked from commit b299393cc372f3ecbef4304f8eaa4c7838e975ca) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
* bpo-32701: Clarify the quotetabs flag in quopri documentation (GH-5401) ↵Miss Islington (bot)2018-01-301-3/+4
| | | | | | | (GH-5438) (cherry picked from commit 9424dcbb3e20a26dfdd81659303b989f7d3da044) Co-authored-by: Julien Palard <julien@palard.fr>
* Document the error return of PyLong_As* APIs. (GH-5396) (#5404)Miss Islington (bot)2018-01-291-0/+34
| | | | | | | Document the error return of PyLong_As* APIs. A frequent Python C API usage error is neglecting to check the return value and/or PyErr_Occurred(). (cherry picked from commit f5b04a360e44aa9733f7a92dd66d2292d6c52955)
* Fix minor markup typo (GH-5407) (#5416)Miss Islington (bot)2018-01-291-1/+1
| | | (cherry picked from commit 2a3260bb030b0d4620242110c0ee5abc379afa8d)
* Fix PyTrace_RETURN documentation (GH-5384) (GH-5386)Miss Islington (bot)2018-01-281-1/+1
| | | | It will be triggered when propagating an exception. (cherry picked from commit 79db11ce99332d62917be9d03b31494b1ff2f96a)
* bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation ↵Miss Islington (bot)2018-01-281-2/+2
| | | | | (GH-5361) (GH-5377) (cherry picked from commit 9ed0aee27c249dada410a22fff4325a4a61df36d)
* Minor grammar fixes to License.rst (GH-1174) (GH-5373)Miss Islington (bot)2018-01-281-3/+4
| | | (cherry picked from commit 8312fba0a1ef8f0a1a6c1760c73a89e29cfca09a)
* [3.6] bpo-32664: Add missing "|" connector in Exceptions doc (GH-1173) (GH-5372)Miss Islington (bot)2018-01-281-1/+1
| | | (cherry picked from commit 992ae6444cc745c23d3bcc604983cc8e39405bd2)
* [3.6] bpo-27505: Retrofit module __class__ documentation from 3.7 (GH-5321)Cheryl Sabella2018-01-271-0/+33
| | | | | | | | The module `__class__` attribute documentation added to 3.7 for PEP 562 (dynamic module attributes) also applies to earlier versions. This backports that subset of the new docs to the 3.6 branch so that it will appear in the main online documentation and in the final 3.6 binary release. Patch by Cheryl Sabella.
* [3.6] bpo-32304: Fix distutils upload for tar files ending with b'\r' ↵Bo Bayles2018-01-271-0/+5
| | | | | (GH-5264) (GH-5330) Patch by Bo Bayles.