19032 Commits

Author SHA1 Message Date
Mariatta
8aa15ba884 [3.5] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2341)
(cherry picked from commit b066edfb1b)
2017-06-22 21:24:33 -07:00
Mariatta
ce1bd6ac7f [3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338)
When a class and its subclass are present, the latter is skipped.
(cherry picked from commit 6580c19bbb)
2017-06-22 19:18:05 -07:00
Serhiy Storchaka
29c89d00bf [3.5] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2298)
They now always return bytes.

Updated the gettext documentation.
(cherry picked from commit 26cb465)
2017-06-20 18:06:45 +03:00
Xiang Zhang
04521c275e bpo-30176: Add missing curses cell attributes constants (#2277) 2017-06-19 22:06:59 +08:00
Mariatta
0b13f58497 bpo-30656: Fix Python C API Module Objects documentation (GH-2170) (GH-2231)
`PyModule_New()` now refers to `PyModule_NewObject()`
(cherry picked from commit 2d0afef82a)
2017-06-15 18:49:54 -07:00
Mariatta
a3afdca219 bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197)
(cherry picked from commit 184bd82ba8)
2017-06-14 12:07:55 -07:00
csabella
ee0572fc96 Fix trivial typo in Python Setup documentation (GH-2185) (GH-2189)
Replace platform with platforms.
(cherry picked from commit 4ebf03d109)
2017-06-14 09:26:22 -07:00
Antoine Pitrou
e0e0029623 [3.5] Mention how to disable signal fd wakeup (GH-2140) (#2150)
(cherry picked from commit d79c1d4a94)
2017-06-13 10:21:54 +02:00
Mariatta
5a86154a93 bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2146)
Move up the discussion about 'with' keyword, so it appears earlier in the document.
(cherry picked from commit bd4e9e0ca9)
2017-06-12 22:40:43 -07:00
Marco Buttu
37e04153d5 bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138)
(cherry picked from commit dc980dfbcfce4695ccde056c3983160ba97b5a36)
2017-06-12 12:43:52 -07:00
Mariatta
7563b05081 bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119)
import json before using json module
(cherry picked from commit 1dbce04d0e)
2017-06-11 18:59:17 -07:00
Zachary Ware
80bdbf6f49 [3.5] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2093)
(cherry picked from commit 0afbabe245)

Also fixes some line endings missed in GH-840 backport.
2017-06-11 11:32:45 -05:00
Mariatta
656f232131 bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (GH-2066)
Mention that fnmatchcase does not call normcase, and fnmatch does.
(cherry picked from commit e5f6e86c48)
2017-06-10 07:26:08 -07:00
Mariatta
cabdba24b5 [3.5] bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536) (GH-2056)
Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.
(cherry picked from commit 74921ed894)
2017-06-09 18:33:50 -07:00
Mariatta
3fc2fa8cb9 bpo-24755: Document asyncio.wrap_future (GH-603) (GH-2020)
(cherry picked from commit 824f687912)
2017-06-09 07:33:24 -07:00
gfyoung
ee9de30aa0 bpo-29596: Improve clinic howto documentation (GH-1710) (GH-1975)
Clarify that `two-pass` buffer can only be dumped once, and it prints out all text sent to it during all processing, even from Clinic blocks *after* the dumping point.
2017-06-06 14:38:08 -07:00
csabella
b32fb6c1fb bpo-30538: Update count() in Functional Programming HOWTO (GH-1919) (GH-1944)
* bpo-30538: Update count() in Functional HOWTO
* bpo-30538: Update enumerate() arguments in Functional HOWTO
(cherry picked from commit 9be4ff359d)
2017-06-04 20:11:58 -07:00
Mariatta
1f04b90086 bpo-30530: Update Descriptor How To Documentation (GH-1845) (GH-1954)
Update the code example in Functions and Methods section
Remove objtype argument in MethodType
(cherry picked from commit 1bced56567)
2017-06-04 20:09:16 -07:00
Matthias Bussonnier
cca3d4aa25 bpo-29660: traceback: Document that etype is ignored in some places. (GH-344) (GH-1914)
(cherry picked from commit cdb89cd)
2017-06-01 20:26:57 -07:00
Mariatta
3419fc2bf1 bpo-30499: Remove a deprecated note about sets. (GH-1848) (GH-1906)
(cherry picked from commit 0737ee2067)
2017-06-01 07:12:09 -07:00
Mariatta
1721b06a78 bpo-22702: Clarify documentation of str.join & bytes.join (GH-156) (GH-1896)
The "iterable iterable" phrasing created confusion between the term
reference and the parameter name.

This simplifies the phrasing to just use the parameter name
without linking directly to the term definition.
(cherry picked from commit 08e2f355d0)
2017-05-31 19:48:28 -07:00
csabella
958e815fe0 bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1895)
(cherry picked from commit 56ddfd2eea)
2017-05-31 18:53:08 -07:00
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
03c7cfcd52 [3.5] bpo-30361: Use better example for mixed-type operands (GH-1701) (#1857)
(cherry picked from commit e405d4b8df)
2017-05-29 18:20:47 -04:00