577 Commits

Author SHA1 Message Date
Mariatta
e81aa87562 [2.7] Fix a trivial typo in global section (GH-1497) (GH-1882)
(cherry picked from commit f34c685020)
2017-05-30 22:08:19 -07:00
Mariatta
e1b02ff588 [2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447)
Replace
   File "<stdin>", line 1, in ?
with
   File "<stdin>", line 1, in <module>.
(cherry picked from commit 8856940cf2)
2017-05-03 18:54:28 -07:00
Serhiy Storchaka
bfc7dff63b [2.7] bpo-15718: Document the upper bound constrain on the __len__ return value. (GH-1256). (#1261)
(cherry picked from commit 85157cd89a)
2017-04-23 08:58:09 +03:00
INADA Naoki
5aa913d723 bpo-29952: Use usual terminology of dict (GH-924)
s/keys and elements/keys and values/
(cherry picked from commit cdcac039fb)
2017-03-31 15:53:25 +09:00
Mariatta
fd704a02ca bpo-16011: clarify that 'in' always returns a boolean value (GH-152) (GH-883)
(cherry picked from commit 0ae7c8bd61)
2017-03-29 14:10:13 -07:00
Martin Panter
60a1b351ca Issue #12067: Rewrite Comparisons section in the language reference
Some of the details of comparing mixed types were incorrect or ambiguous.
Added default behaviour and consistency suggestions for user-defined classes.
Based on patch from Andy Maier.
2017-01-21 05:14:56 +00:00
Victor Stinner
f6447e0065 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:15:35 +01:00
Serhiy Storchaka
0092bc7279 Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
2016-11-26 13:43:39 +02:00
Serhiy Storchaka
ad13f338ce Issue #19795: Mark up None as literal text. 2016-10-19 16:29:10 +03:00
Martin Panter
8f1dd224e0 Issue #26462: Doc: avoid literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
b362f75f6e Issue #25523: Correct "a" article to "an" article
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
2015-11-02 03:37:02 +00:00
Martin Panter
d51b0f2188 Issue #24314: Add links for general attributes like __name__, __dict__ 2016-06-18 03:57:31 +00:00
Tommy Beadle
24b9e1a00d [Issue 15476] Make "code object" its own entry in the index 2016-06-02 19:26:51 -04:00
Martin Panter
d5982d0433 Issue #23275: Backport empty square bracket assignment documentation fix 2016-06-08 12:44:30 +00:00
Serhiy Storchaka
12d547a80d Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
2016-05-10 13:45:32 +03:00
Raymond Hettinger
167c81d5ed Issue #23986: Note that the in-operator for lists and tuples check identity before equality. 2016-04-26 00:59:16 -07:00
Serhiy Storchaka
838b1339e8 Remove redundant leading zeroes in PEP references. 2016-03-31 15:31:04 +03:00
Zachary Ware
bf3b89782f Python for .NET has moved to Github.
Reported by Denis Akhiyarov on docs@
2016-02-03 22:05:46 -06:00
Robert Collins
311c8d63e5 Issue #24531: Document that encoding lines cannot follow non-comment lines.
Patch from Terry Reedy
2015-08-06 21:08:44 +12:00
Benjamin Peterson
dbbc07c2ec the default is sys.maxsize not sys.maxint (closes #23645) 2015-03-13 14:32:31 -05:00
Ethan Furman
3700cc3ad6 Issue20467: clarify __init__'s role 2015-01-14 22:02:10 -08:00
Terry Jan Reedy
f0f09b9470 Issue #23006: Improve the documentation and indexing of dict.__missing__.
Add an entry in the language datamodel special methods section.
Revise and index its discussion in the stdtypes mapping/dict section.
Backport the code example from 3.4.
2014-12-10 18:38:07 -05:00
Georg Brandl
97ae4660e1 Fixing broken links in doc, part 3: the rest 2014-10-29 10:26:56 +01:00
Georg Brandl
06f3b3b98c Use https:// URLs when referring to python.org hosts. 2014-10-29 08:36:35 +01:00
Benjamin Peterson
867dc37822 remove link to the 'original package specification'; I doubt it's useful anymore (closes #22657) 2014-10-17 11:07:14 -04:00