Nick Coghlan
cbcd221de4
Merge #27782 fix from 3.5
2016-08-21 17:43:58 +10:00
Nick Coghlan
8682f578c1
Issue #27782 : Fix m_methods handling in multiphase init
...
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.
Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Ethan Furman
e8e61277ff
issue26981: add _order_ compatibility shim to enum.Enum
2016-08-20 07:19:31 -07:00
Martin Panter
8fbab9f163
Merge spelling fixes from 3.5
2016-08-20 08:26:16 +00:00
Berker Peksag
09808e7530
Issue #12982 : Merge from 3.5
2016-08-20 11:12:20 +03:00
Berker Peksag
f43bc98c48
Issue #12982 : Thanks to PEP 488, Python no longer creates .pyo files
2016-08-20 11:11:52 +03:00
Martin Panter
d210a70dd9
Minor spelling fixes
2016-08-20 08:03:06 +00:00
Ethan Furman
332dbc7325
Issue26988: remove AutoEnum
2016-08-20 00:00:52 -07:00
Berker Peksag
7a01508bbe
Issue #12946 : Merge from 3.5
2016-08-19 11:52:08 +03:00
Berker Peksag
c01e766b54
Issue #12946 : Document that PyModule_GetDict can fail in some cases
2016-08-19 11:51:39 +03:00
Berker Peksag
3f015a64b8
Issue #27157 : Make only type() itself accept the one-argument form
...
Patch by Eryk Sun and Emanuel Barry.
2016-08-19 11:04:07 +03:00
Vinay Sajip
ef948cd058
Closes #12713 : Allowed abbreviation of subcommands in argparse.
2016-08-18 21:23:48 +01:00
Guido van Rossum
97c1adf393
Anti-registration of various ABC methods.
...
- Issue #25958 : Support "anti-registration" of special methods from
various ABCs, like __hash__, __iter__ or __len__. All these (and
several more) can be set to None in an implementation class and the
behavior will be as if the method is not defined at all.
(Previously, this mechanism existed only for __hash__, to make
mutable classes unhashable.) Code contributed by Andrew Barnert and
Ivan Levkivskyi.
2016-08-18 09:22:23 -07:00
Vinay Sajip
82df3b3071
Closes #9998 : Allowed find_library to search additional locations for libraries.
2016-08-17 16:20:07 +01:00
Zachary Ware
48e4bd6a02
Merge with 3.5
2016-08-17 09:52:32 -05:00
Zachary Ware
54005afeee
Use sys.version_info, not sys.version.
...
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
2016-08-17 09:51:20 -05:00
Raymond Hettinger
fd27f62a74
Add cross-reference to typing.NamedTuple. Doctest two more examples.
2016-08-16 13:13:17 -07:00
Raymond Hettinger
a5f1fbd493
merge
2016-08-16 10:59:21 -07:00
Raymond Hettinger
379a3ffaf2
Remove duplicate of the entry in the seealso section
2016-08-16 10:59:04 -07:00
Raymond Hettinger
6538b430cf
Issue #25628 : Make namedtuple "rename" and "verbose" parameters keyword-only.
2016-08-16 10:55:43 -07:00
Georg Brandl
4770d6ec76
Add versionadded tags for (c)math.tau.
2016-08-16 07:08:46 +02:00
Nick Coghlan
02d03dfab1
Issue #26823 : fix traceback abbreviation docs
...
- be clear builtin traceback display was also updated
- show example output in What's New
- fix versionadded markup
2016-08-16 10:58:14 +10:00
Guido van Rossum
b09b3f7ab9
Add docs for typing.AnyStr and typing.Text. By Michael Lee. (Merge 3.5->3.6)
2016-08-15 15:08:11 -07:00
Guido van Rossum
aa9560c633
Add docs for typing.AnyStr and typing.Text. By Michael Lee.
2016-08-15 15:06:38 -07:00
Guido van Rossum
0a891d70de
Issue #12345 : Add mathemathcal constant tau to math and cmath.
...
Patch by Lisa Roach. See also PEP 628.
2016-08-15 09:12:52 -07:00
Serhiy Storchaka
15f3228b7c
Issue #16764 : Support keyword arguments to zlib.decompress(). Patch by
...
Xiang Zhang.
2016-08-15 10:06:16 +03:00
Nick Coghlan
d00342347e
Issue #26823 : Abbreviate recursive tracebacks
...
Large sections of repeated lines in tracebacks are now abbreviated as
"[Previous line repeated {count} more times]" by both the traceback
module and the builtin traceback rendering.
Patch by Emanuel Barry.
2016-08-15 13:11:34 +10:00
Steven D'Aprano
dd51d16b48
Issue27573 code.interact prints a message when exiting.
2016-08-15 04:14:33 +10:00
Steven D'Aprano
a0d3eeff86
Add versionadded tag to docs for timeit.autorange
2016-08-15 02:47:49 +10:00
Steven D'Aprano
09f4f711b6
Issue6422 add autorange method to timeit.Timer
2016-08-15 01:27:03 +10:00
Serhiy Storchaka
9171a8b4ce
Issue #27574 : Decreased an overhead of parsing keyword arguments in functions
...
implemented with using Argument Clinic.
2016-08-14 10:52:18 +03:00
R David Murray
c00189e949
Merge: #27753 : fix typo (name->named).
2016-08-13 14:47:54 -04:00
R David Murray
689016fc00
#27753 : fix typo (name->named).
2016-08-13 14:47:18 -04:00
Raymond Hettinger
5dd2b8621d
merge
2016-08-13 11:15:59 -07:00
Raymond Hettinger
f6ffa9826e
Issue #27720 : Fix error in eng_to_decimal docs and add examples from the specification.
...
(Based on a first draft patch from Evelyn Mitchell.)
2016-08-13 11:15:34 -07:00
Berker Peksag
0b9e64122b
Issue #24637 : Merge from 3.5
2016-08-13 05:38:18 +03:00
Berker Peksag
bd664357f1
Issue #24637 : Document that locals can be any mapping object
...
This behavior is already tested in test_general_eval in
Lib/test/test_builtin.py
Patch by Matthew Keeter.
2016-08-13 05:37:49 +03:00
Brett Cannon
3f63483a30
Merge for issue #27712
2016-08-12 10:57:17 -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
Raymond Hettinger
87fe473edc
merge
2016-08-12 09:44:18 -07:00
Raymond Hettinger
7f65af3d2d
Issue 27719: Remove a doc example that is not applicable in Python 3
2016-08-12 09:43:59 -07:00
Martin Panter
98cf1e79a1
Issue #27745 : Merge typo fixes from 3.5
2016-08-12 12:05:48 +00:00
Martin Panter
b4a2b36c99
Issue #27745 : Fix some typos in Argument Clinic howto, by Lele Gaifax
2016-08-12 12:02:03 +00:00
Martin Panter
83545f1c76
Merge ISO-8859 fixes from 3.5
2016-08-10 07:00:33 +00:00
Zachary Ware
306c3dd6f5
Issue #27200 : Merge with 3.5
2016-08-10 01:05:56 -05:00
Zachary Ware
4199bbaf63
Issue #27200 : Fix doctests in Doc/library/hashlib.rst
2016-08-10 01:05:19 -05:00
Zachary Ware
11328fc480
Closes #27210 : Merge with 3.5
2016-08-10 01:01:05 -05:00
Zachary Ware
9f8b3a0b92
Issue #27210 : Fix doctests for a few modules.
...
Initial patch by Jelle Zijlstra.
2016-08-10 00:59:59 -05:00
Zachary Ware
7a57370637
Closes #27209 : Merge with 3.5
2016-08-10 00:39:59 -05:00
Zachary Ware
640b1ca507
Issue #27209 : Fix doctests in Doc/library/email*.rst
...
Patch by Jelle Zijlstra.
2016-08-10 00:39:41 -05:00
Zachary Ware
ef28f6ad82
Closes #27208 : Merge with 3.5
2016-08-10 00:35:51 -05:00
Zachary Ware
c90fccdff6
Issue #27208 : Fix doctest in Doc/library/traceback.rst
...
Patch by Jelle Zijlstra.
2016-08-10 00:35:27 -05:00
Zachary Ware
75bc032341
Closes #27207 : Merge with 3.5
2016-08-10 00:31:31 -05:00
Zachary Ware
4032620f93
Issue #27207 : Fix doctests in Doc/whatsnew/3.2.rst
...
Initial patch by Jelle Zijlstra.
2016-08-10 00:30:41 -05:00
Martin Panter
540f0451d2
Correct misspellings of ISO-8859
2016-08-10 05:25:16 +00:00
Zachary Ware
c17dd50957
Closes #27206 : Merge with 3.5
2016-08-09 17:45:15 -05:00
Zachary Ware
c483a01a8f
Issue #27206 : Fix doctests in Doc/tutorial.
...
Patch by Jelle Zijlstra.
2016-08-09 17:44:52 -05:00
Zachary Ware
0e0fe4f9ea
Closes #27205 : Merge with 3.5
2016-08-09 17:38:44 -05:00
Zachary Ware
2b52c0a25f
Issue #27205 : Fix doctests in Doc/library/collections.rst.
...
Initial patch by Jelle Zijlstra.
2016-08-09 17:38:22 -05:00
Zachary Ware
8ec8749a38
Closes #27722 : Merge with 3.5
2016-08-09 17:10:53 -05:00
Zachary Ware
7a26da5845
Issue #27722 : Fix default for touch method's 'mode' argument
2016-08-09 17:10:39 -05:00
Zachary Ware
f03f7c75d8
Closes #27204 : Merge with 3.5
2016-08-09 17:05:23 -05:00
Zachary Ware
378a1d77d9
Issue #27204 : Fix doctests in Doc/howto
...
Patch by Jelle Zijlstra.
2016-08-09 16:47:04 -05:00
Zachary Ware
1aa913e134
Merge with 3.5
2016-08-09 16:21:17 -05:00
Zachary Ware
2f47fb0021
Correct signatures for a couple of logging handlers
...
Reported by Oleg Gromyak on docs@
2016-08-09 16:20:41 -05:00
Guido van Rossum
2b0bb0d295
Issue #27700 : Document AbstractEventLoop, not BaseEventLoop. (Merge 3.5->3.6)
2016-08-08 14:43:46 -07:00
Guido van Rossum
f68afd8544
Issue #27700 : Document AbstractEventLoop, not BaseEventLoop.
2016-08-08 09:41:21 -07:00
Berker Peksag
1107f09bfc
Merge from 3.5
2016-08-08 13:35:27 +03:00
Berker Peksag
08d85ee78d
Fix use of default reST role
2016-08-08 13:34:49 +03:00
Berker Peksag
f4c69ab0ed
Issue #23322 : Merge from 3.5
2016-08-08 13:07:35 +03:00
Berker Peksag
7d1c5efed1
Issue #23322 : Remove outdated reference to an example in parser docs
...
Initial patch by Sahil Chelaramani.
2016-08-08 13:07:08 +03:00
Andrew Svetlov
2b1c45ed54
Merge 3.5
2016-08-08 03:11:06 +03:00
Andrew Svetlov
4365b8302d
Use asyncio.gather instead of asyncio.wait in example.
...
gather will raise exception in case of problem but wait just returns done and pending lists of futures.
For getting error every future result should be retrieved, which is boring and error prone.
2016-08-08 03:10:39 +03:00
Gregory P. Smith
50abe877ee
Issue #27664 : Add to concurrent.futures.thread.ThreadPoolExecutor()
...
the ability to specify a thread name prefix.
2016-08-07 10:19:20 -07:00
Guido van Rossum
3cc38327b6
Better docs for typing.Any by Michael Lee. Fixes issue #27688 . (Merge 3.5->3.6)
2016-08-06 13:48:10 -07:00
Guido van Rossum
abfe28b012
Better docs for typing.Any by Michael Lee. Fixes issue #27688 .
2016-08-06 13:46:48 -07:00
Serhiy Storchaka
febc332056
Issue #26754 : Undocumented support of general bytes-like objects
...
as path in compile() and similar functions is now deprecated.
2016-08-06 23:29:29 +03:00
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
...
as paths in os functions is now deprecated.
2016-08-06 23:22:08 +03:00
Berker Peksag
43b586b951
Silence warnings from 'make suspicious' to make the docs buildbot happy
2016-08-06 13:37:22 +03:00
Vinay Sajip
fd0f84bd8f
Closes #22829 : Added --prompt option to venv.
2016-08-06 10:43:44 +01:00
Berker Peksag
933c66af56
Issue #18548 : Merge from 3.5
2016-08-06 03:00:30 +03:00
Berker Peksag
ab75e02f5c
Issue #18548 : Fix unittest.TestSuite() example
...
Initial patch by py.user.
2016-08-06 03:00:03 +03:00
Ethan Furman
73fc586d9f
Add AutoEnum: automatically provides next value if missing. Issue 26988.
2016-08-05 16:03:16 -07:00
Ethan Furman
20bd9f033a
Clarify NotImplemented vs NotImplementedError. Initial patch by Emmanuel Barry. Closes issue 27242.
2016-08-05 15:10:16 -07:00
Guido van Rossum
b6337a1145
Add typing.Generator docs, by Michael Lee. (Merge 3.5->3.6)
2016-08-05 12:57:38 -07:00
Guido van Rossum
b858af61b9
Add typing.Generator docs, by Michael Lee.
2016-08-05 12:56:09 -07:00
Martin Panter
02b75abf73
Merge spelling and grammar fixes from 3.5
2016-08-05 01:51:39 +00:00
Zachary Ware
a31ddb3351
Merge with 3.5
2016-08-04 12:14:51 -05:00
Zachary Ware
72e483aac4
Fix half-finished sentence.
...
Reported by Linda Pescatore on docs@.
2016-08-04 12:13:47 -05:00
Berker Peksag
6090194ef7
Merge from 3.5
2016-08-04 17:26:00 +03:00
Berker Peksag
85b6090768
Fix indentation of versionadded directive in IPv4Address.reverse_pointer docs
2016-08-04 17:25:40 +03:00
Berker Peksag
8576ca1970
Merge from 3.5
2016-08-04 17:22:05 +03:00
Berker Peksag
6bbc83986d
Indent ipaddress.ip_address() example correctly
2016-08-04 17:21:46 +03:00
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
2016-08-04 13:07:31 +00:00
Martin Panter
0de01c4b30
Issue #24278 : Merge argument parsing docs from 3.5
2016-08-04 01:51:32 +00:00
Martin Panter
6c7d5a2553
Issue #24278 : Explain how argument parsing output buffers are managed
2016-08-03 14:35:05 +00:00
Berker Peksag
9f4712af25
Issue #23710 : Merge from 3.5
2016-08-03 12:59:16 +03:00
Berker Peksag
bed6891c77
Issue #23710 : Update PyObject_HEAD documentation
...
Since PEP 3123, PyObject_HEAD only has one field named ob_base.
Users now need to use the Py_TYPE macro instead of self->ob_type.
Initial patch by Ammar Askar.
2016-08-03 12:58:49 +03:00
Berker Peksag
91494d3b73
Issue #26576 : Merge from 3.5
2016-08-03 10:17:51 +03: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