summaryrefslogtreecommitdiffstats
path: root/Doc/reference
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31621: Fix typo in Simple Statements documentation (GH-3809) (GH-3810)Miss Islington (bot)2017-09-281-1/+1
| | | | Replace "restriction" with "restrictions". (cherry picked from commit 8d59aca4a953b097a9b02b0ecafef840e4ac5855)
* bpo-31571: Remove duplicated info in Lexical Analysis documentation ↵Miss Islington (bot)2017-09-251-7/+0
| | | | | | | (GH-3691) (GH-3754) - Remove the second mention about the `u` prefix - Remove the second mention about numeric literals do not include a sign (cherry picked from commit 4a2d00cb4525fcb3209f04531472ba6a359ed418)
* bpo-31501: Operator precedence description for arithmetic operators ↵Miss Islington (bot)2017-09-191-2/+2
| | | | | (GH-3633) (GH-3638) (cherry picked from commit 9b47af65375fab9318e88ccb061394a36c8c6c33)
* bpo-31487: Update F-strings doc example (GH-3627) (GH-3628)Miss Islington (bot)2017-09-171-1/+1
| | | | Shorten the comment to: "using integer format specifier" (cherry picked from commit 63c591c0b0b57870a606e8edc59afe6264e7504d)
* bpo-31487: Improve f-strings documentation (GH-3604) (GH-3619)Miss Islington (bot)2017-09-161-0/+6
| | | | | Provide additional examples of using format specifiers in f-strings Added examples for using integer and date format specifiers. (cherry picked from commit f3618970690b08ed88e430ba8017859b4fafc3f9)
* [3.6] Mention enum as a potential use for metaclasses (GH-2982) (GH-3527)Miss Islington (bot)2017-09-131-2/+2
| | | (cherry picked from commit b8d1b9d7c697dd0401491b6d43047acbaf425f02)
* [3.6] link to legacy doc on the non-legacy website (GH-3362) (#3368)Benjamin Peterson2017-09-061-1/+1
| | | (cherry picked from commit 60dbed18509f99af8eaa685d9736f954b8d621fb)
* fix some reference to Unicode 8 that should be to Unicode 9 (#2346)Benjamin Peterson2017-06-231-2/+2
|
* bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271) ↵Mariatta2017-06-021-8/+8
| | | | | | | | | | | | | (GH-1915) Builtin container types have two potential link targets in the docs: - their entry in the list of builtin callables - their type documentation This change brings `bytes` and `bytearray` into line with other container types by having cross-references default to linking to their type documentation, rather than their builtin callable entry.. (cherry picked from commit c6db4811f9ea3aeff0e1fafe1c60a22835ef359e)
* [3.6] Fix a trivial typo in global section (GH-1497) (GH-1880)Mariatta2017-05-311-1/+1
| | | (cherry picked from commit f34c6850203a2406c4950af7a9c8a134145df4ea)
* bpo-17188: add missing periods at the end of sentences (GH-1875) (GH-1876)Mariatta2017-05-301-2/+2
| | | (cherry picked from commit 9efad1e5aef32a6d8ca288793e8ee6df8782f615)
* bpo-30354: Update data model documentation for super() (GH-1561) (GH-1868)csabella2017-05-301-6/+6
| | | | | | | | | | | The data model section of the language reference was written well before the zero-argument form of super() was added. To avoid giving the impression that they're doing something unusual, this updates the description of `__new__` and `__init__` to use the zero-argument form. Patch by Cheryl Sabella. (cherry picked from commit 12b1c180986fc744331b8f30d3d2f49a0fdb43dd)
* bpo-17188: DOC: Document 'from None' in raise statement (GH-1671) (GH-1867)csabella2017-05-301-2/+20
| | | | Original patch by Dennis Mårtensson. (cherry picked from commit 763557eac06ba60d7c5133e4f80df8870d8f917e)
* Improve grammar in The Import System documentation (GH-1862) (GH-1863)Mariatta2017-05-301-6/+6
| | | | | Replace `an ModuleNotFoundError` with `a ModuleNotFoundError`. Replace `an path` with `a path`. (cherry picked from commit 9c972b578002cc3bbbf2ebf2856c69de892bc9e2)
* [3.6] bpo-30372: Clarify that '__builtins__' is a CPython Implementation ↵Mariatta2017-05-221-9/+9
| | | | | detail (GH-1725) (GH-1727) (cherry picked from commit 43c8a9e39bb2d4f25ed7ae17a55f34e375d1868b)
* [3.6] Fix typos in multiple `.rst` files (GH-1668) (#1702)delirious-lettuce2017-05-211-1/+1
| | | (cherry picked from commit 3378b2062c7fbb77a9b5e6d315d6b94160fac69a)
* Fix ModuleNotFoundError typo in import reference (#1610)Dominik Miedziński2017-05-171-1/+1
| | | (cherry picked from commit c138d84b8d27d338872587aae69a73d8f9d16641)
* [3.6] bpo-28315: Improve code examples in docs (GH-1372) (#1445)Mariatta2017-05-041-1/+1
| | | | | | | Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module> (cherry picked from commit 8856940cf2e82cb17db2b684cd5732fe658605ca)
* [3.6] bpo-15718: Document the upper bound constrain on the __len__ return ↵Serhiy Storchaka2017-04-231-0/+9
| | | | | value. (GH-1256) (#1259) (cherry picked from commit 85157cd)
* bpo-29952: Use usual terminology of dict (GH-922)INADA Naoki2017-03-311-1/+1
| | | | s/keys and elements/keys and values/ (cherry picked from commit cdcac039fb447f2ab04efcacbe663751bb2cb4ec)
* bpo-16011: clarify that 'in' always returns a boolean value (GH-874)Mariatta2017-03-281-9/+10
| | | (cherry picked from commit 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5)
* Remove an outdated statement in execution model docs (GH-754) (GH-775)Mariatta2017-03-231-6/+0
| | | (cherry picked from commit fad7f1560669af1766c583c7ef242c55d8c8de41)
* bpo-28739: Document that f-strings cannot be used as docstring (GH-592) (GH-600)Mariatta2017-03-101-0/+11
| | | (cherry picked from commit d4e89287b397c7382c12d3f3d9fd901fd8243b3c)
* bpo-26184: import.rst: Improve versionchanged note (GH-325) (GH-326)Mariatta2017-02-261-1/+1
| | | (cherry picked from commit 1f5639c77f736c18fb5a85b4a1850121e25c788e)
* bpo-26184: import.rst: Improve versionchanged note (GH-277) (#320)Mariatta2017-02-261-2/+5
| | | (cherry picked from commit 6b4a5f45e2df524174a97832571c82c76a3d424a)
* bpo-29648: import.rst: Add reference to create_module() (GH-290) (GH-314)Mariatta2017-02-261-1/+1
| | | (cherry picked from commit 46ce7599af82a929506baeaaee5c149970440c4c)
* [3.6] Fix small typos in expressions.rst (GH-276) (GH-281)Mariatta2017-02-251-2/+2
| | | (cherry picked from commit 132ac381fe7eb593e3d7c63926f90285bba13cdc)
* Issues #12067: Merge hash recommendation from 3.5Martin Panter2017-01-291-0/+4
|\
| * Issue #12067: Recommend that hash and equality be consistentMartin Panter2017-01-291-0/+4
| |
* | Issue #29012: Merge from 3.5Berker Peksag2017-01-031-5/+4
|\ \ | |/
| * Issue #29012: Remove another outdated informationBerker Peksag2017-01-031-3/+3
| | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | Issue #29012: Merge from 3.5Berker Peksag2017-01-021-1/+1
|\ \ | |/
| * Issue #29012: Remove outdated information about __bases__Berker Peksag2017-01-021-1/+1
| | | | | | | | Patch by Jim Fasarakis-Hilliard.
* | Issue #28954: Merge keyword argument syntax from 3.5Martin Panter2016-12-241-1/+1
|\ \ | |/
| * Issue #28954: Add missing comma to keyword argument syntaxMartin Panter2016-12-241-1/+1
| |
* | Merge 3.5Victor Stinner2016-12-191-5/+8
|\ \ | |/
| * doc: Suggest to hash(tuple of attr) rather than XORVictor Stinner2016-12-191-5/+8
| | | | | | | | | | | | Issue #28383: __hash__ documentation recommends naive XOR to combine but this is suboptimal. Update the doc to suggest to reuse the hash() method using a tuple, with an example.
* | Issue #28091: Document PEP 525 & PEP 530.Yury Selivanov2016-12-154-4/+187
| | | | | | | | Patch by Eric Appelt.
* | Issue #23722: improve __classcell__ compatibilityNick Coghlan2016-12-051-1/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handling zero-argument super() in __init_subclass__ and __set_name__ involved moving __class__ initialisation to type.__new__. This requires cooperation from custom metaclasses to ensure that the new __classcell__ entry is passed along appropriately. The initial implementation of that change resulted in abruptly broken zero-argument super() support in metaclasses that didn't adhere to the new requirements (such as Django's metaclass for Model definitions). The updated approach adopted here instead emits a deprecation warning for those cases, and makes them work the same way they did in Python 3.5. This patch also improves the related class machinery documentation to cover these details and to include more reader-friendly cross-references and index entries.
* | Another en → em dash fix for 3.6Martin Panter2016-11-211-1/+1
| |
* | Update docs to reflect new behavior around backslashes in expressions (not ↵Jason R. Coombs2016-11-061-7/+12
| | | | | | | | allowed), matching recent changes to PEP 498.
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
| |
* | mergeRaymond Hettinger2016-09-121-2/+3
|\ \ | |/
| * Issue #26511: Reference the id() function in the 'is' and 'is not' docsRaymond Hettinger2016-09-121-2/+3
| |
* | Issue #28076: Variable annotations should be mangled for private names.Guido van Rossum2016-09-111-3/+4
| | | | | | | | By Ivan Levkivskyi.
* | Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-16/+29
| | | | | | | | Thanks to Georg Brandl for the patch.
* | Doc updates for PEPs 520 and 468.Eric Snow2016-09-091-3/+3
| |
* | Issue #27999: Make "global after use" a SyntaxError, and ditto for nonlocal.Guido van Rossum2016-09-091-2/+3
| | | | | | | | Patch by Ivan Levkivskyi.
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-092-14/+65
| | | | | | | | Patch by Ivan Levkivskyi.