Mariatta
99424d8f2a
[3.5] Fix a trivial typo in global section (GH-1497) (GH-1881)
...
(cherry picked from commit f34c685020 )
2017-05-30 22:08:12 -07:00
csabella
75ea91bb73
bpo-30354: Update data model documentation for super() (GH-1561) (GH-1869)
...
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 12b1c18098 )
2017-05-30 13:47:47 -07:00
Mariatta
5274faf5e3
[3.5] bpo-28315: Improve code examples in docs (GH-1372) ( #1446 )
...
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
(cherry picked from commit 8856940cf2 )
2017-05-03 18:41:12 -07:00
Serhiy Storchaka
c358536fd5
[3.5] bpo-15718: Document the upper bound constrain on the __len__ return value. (GH-1256) ( #1260 )
...
(cherry picked from commit 85157cd )
2017-04-23 08:50:20 +03:00
INADA Naoki
f315812113
bpo-29952: Use usual terminology of dict (GH-923)
...
s/keys and elements/keys and values/
(cherry picked from commit cdcac039fb )
2017-03-31 15:43:35 +09:00
Mariatta
0957f262c5
bpo-16011: clarify that 'in' always returns a boolean value (GH-152) (GH-875)
...
(cherry picked from commit 0ae7c8bd61 )
2017-03-28 09:32:50 -07:00
Mariatta
a6a856f4d8
Remove an outdated statement in execution model docs (GH-754) (GH-774)
...
(cherry picked from commit fad7f15606 )
2017-03-22 18:55:33 -07:00
Mariatta
63ed9bc94d
bpo-29648: import.rst: Add reference to create_module() (GH-290) (GH-315)
...
(cherry picked from commit 46ce7599af )
2017-02-26 07:40:03 -08:00
Martin Panter
8dbb0ca573
Issue #12067 : Recommend that hash and equality be consistent
2017-01-29 10:00:23 +00:00
Berker Peksag
7b4e551091
Issue #29012 : Remove another outdated information
...
Patch by Jim Fasarakis-Hilliard.
2017-01-03 03:34:15 +03:00
Berker Peksag
14adafd6ee
Issue #29012 : Remove outdated information about __bases__
...
Patch by Jim Fasarakis-Hilliard.
2017-01-02 06:00:35 +03:00
Martin Panter
7106a51c71
Issue #28954 : Add missing comma to keyword argument syntax
2016-12-24 10:20:38 +00:00
Victor Stinner
509476b370
doc: Suggest to hash(tuple of attr) rather than XOR
...
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.
2016-12-19 13:09:28 +01:00
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
2016-10-19 16:29:26 +03:00
Raymond Hettinger
06e18a7c24
Issue #26511 : Reference the id() function in the 'is' and 'is not' docs
2016-09-11 17:23:49 -07:00
Raymond Hettinger
7ea386e56e
Issue 19504: Change "customise" to "customize" American spelling.
2016-08-25 21:11:50 -07:00
Brett Cannon
6336fb2734
Issue #27712 : Fix some typos in the import docs.
...
Thanks to Xiang Zhang for the patch.
2016-08-12 10:56:48 -07:00
Berker Peksag
6cafececbf
Issue #26576 : Clarify that the @deco syntax is not always an equivalent of f = deco(f)
...
Patch by Chris Angelico.
2016-08-03 10:17:21 +03:00
Martin Panter
1050d2d0c7
Issue #26462 : Doc: reduce literal_block warnings, fix syntax highlighting.
...
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +00:00
Martin Panter
0c0da48aed
Issue #24136 : Document generalized unpacking, PEP 448
...
Based on patches by Konstantin Molchanov and Neil Girdhar.
2016-06-12 01:46:50 +00:00
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
2016-06-02 19:26:51 -04:00
Yury Selivanov
a6f6edbda8
Issue #27243 : Fix __aiter__ protocol
2016-06-09 15:08:31 -04:00
Martin Panter
7d7a11b5d7
Issue #23275 : Backport target list assignment documentation fixes
2016-06-08 12:44:30 +00:00
R David Murray
dd4fcf52f4
#26829 : Clarify that namespace is copied to a new __dict__ in instance creation.
...
Patch by Emily Morehouse.
2016-06-02 20:05:43 -04:00