Andre Delfino
c6639cda51
[2.7] Move __missing__ after __delitem__ in Data model. (GH-10923). (GH-10944)
...
(cherry picked from commit 1ce853f377
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2018-12-05 23:09:25 +02:00
Andrés Delfino
fb8eb2c277
[2.7] bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) (GH-10469)
...
https://bugs.python.org/issue33699
(cherry picked from commit b086c8afdb
)
https://bugs.python.org/issue33699
2018-11-11 12:09:03 -08:00
Miss Islington (bot)
842efd0087
Add future_stmt to simple_stmt production list. (GH-8239)
...
(cherry picked from commit cdb96f45b6
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-11-07 21:16:15 -08:00
Andrés Delfino
5e980f09b6
[2.7] Use 'for example' instead of 'in other words' in compound statement doc (GH-8401)
...
(cherry picked from commit 6921ef7bef
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-07-30 12:16:35 -07:00
Andrés Delfino
1c9a72cc99
[2.7] bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)
...
The statement is true for Windows (and macOS) also..
(cherry picked from commit c9d43c702a
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-22 22:37:17 -04:00
Andrés Delfino
184e8ed1ee
[2.7] bpo-33852: Remove misplaced parentheses around 'list'. (GH-7672) ( #7716 )
...
'expresson list' refers to the grammar term 'expression_list' in the subscription production..
(cherry picked from commit 4fddd4e406
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-06-15 15:23:37 -04:00
Miss Islington (bot)
f01b951a0e
bpo-33766: Document that end of file or string is a newline (GH-7383)
...
(cherry picked from commit 0aa17ee6a7
)
Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
2018-06-09 16:55:26 -07:00
Terry Jan Reedy
804fcf6655
[2.7] bpo-33595: Fix lambda parameters being refered as arguments (GH-7037) (GH-7122)
...
(cherry picked from commit 268cc7c
)
Co-authored-by: Andrés Delfino adelfino@gmail.com
2018-05-25 14:38:09 -04:00
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
Georg Brandl
8d867cb718
Closes #17057 : fix grammar in old-style vs new-style class docs.
2014-10-06 17:46:43 +02:00
Terry Jan Reedy
b10b8ead13
Issue 22465: grammar, number agreement.
2014-09-30 19:07:45 -04:00
Serhiy Storchaka
ea217728c3
Issue #20643 : Fixed references to the next() method (distinguish from the
...
next() function).
2014-09-05 23:34:12 +03:00
Benjamin Peterson
13056bff66
correct call grammar error ( #3473 )
2014-08-28 00:05:52 -04:00
Terry Jan Reedy
a58b255a8e
Issue #22243 : fix except grammar in reference.
2014-08-23 19:29:40 -04:00
Benjamin Peterson
e9314e4a3c
remove confusing delete indexing ( closes #21466 )
2014-05-11 11:18:51 -07:00
Zachary Ware
4773b908b1
Add prompts to interactive example.
...
This makes it match the new example below, and allows Sphinx's
"hide the prompts and output" feature to work.
2014-05-06 09:18:17 -05:00
Zachary Ware
1512143ef0
Issue #21366 : Document the fact that ``return`` in a ``finally`` clause
...
overrides a ``return`` in the ``try`` suite.
2014-05-06 09:07:13 -05:00
Terry Jan Reedy
f3ae10e7ca
Closes #21055 : Index (augmented) assignment symbols.
2014-04-29 01:19:05 -04:00
Terry Jan Reedy
cd3d741451
Closes 21048: Index 'as' in import and with statements.
2014-04-29 00:58:48 -04:00
R David Murray
dd967efae9
#18628 : clarify index entry for source file encoding declaration.
2014-04-16 21:57:38 -04:00
Benjamin Peterson
b41299e498
note that the hash of an arbitrary object is only derived from its address ( closes #21154 )
...
Patch from Armin Rigo.
2014-04-04 09:58:13 -04:00
Mark Dickinson
383952d52c
Issue #19683 : Add __closure__ and other missing attributes to function docs.
2014-02-01 16:32:40 +00:00
Serhiy Storchaka
26d936a71e
Issue #19795 : Improved markup of True/False constants.
2013-11-29 12:16:53 +02:00
Serhiy Storchaka
ad16b725bc
Issue #19190 : Improve cross-references in builtin types and functions documentation.
2013-10-09 14:02:14 +03:00
Georg Brandl
cff39b0120
Use "lambda expression" as preferred to "lambda form".
2013-10-06 10:26:58 +02:00
Benjamin Peterson
b44c8619fe
document that various functions that parse from source will interpret things as latin-1 ( closes #18870 )
2013-09-01 19:06:35 -04:00