Benjamin Peterson
e5f2cc67be
merge 3.6
2017-02-09 22:35:38 -08:00
Benjamin Peterson
35a1f7f62d
massage English for -X descriptions a bit
2017-02-09 22:31:17 -08:00
Nick Coghlan
c7a24a7330
Merge issue #26355 fix from 3.6
2017-02-09 16:09:03 +01:00
Nick Coghlan
e1857579f8
Merge issue #26355 fix from Python 3.5
2017-02-09 16:08:17 +01:00
Nick Coghlan
e66244521c
Issue #26355 : Specify canonical URLs in docs pages
...
Add canonical header link on each page to corresponding major
version of the documentation.
Patch by Matthias Bussonnier.
2017-02-09 16:03:59 +01:00
Berker Peksag
ee0ee9ae8e
Issue #29441 : Merge from 3.6
2017-02-07 11:28:19 +03:00
Berker Peksag
088507644e
Issue #29441 : Merge from 3.5
2017-02-07 11:27:48 +03:00
Berker Peksag
f59286794b
Issue #29441 : Update examples to use async and await keywords in asyncio-task.rst
2017-02-07 11:27:09 +03:00
Mariatta Wijaya
743376f45e
Issue #29371 : merge with 3.6
2017-02-06 20:18:39 -08:00
Mariatta Wijaya
e39262ccc3
Issue #29371 : merge with 3.5
2017-02-06 20:16:58 -08:00
Mariatta Wijaya
81b8977349
Issue #29371 : Clarify bitwise OR operation in doctest option flags.
2017-02-06 20:15:01 -08:00
Raymond Hettinger
0fa47469a9
merge
2017-02-06 07:15:57 -08:00
Raymond Hettinger
d0b9158666
Substitute a more readable f-string
2017-02-06 07:15:31 -08:00
Berker Peksag
7b620a448e
Merge from 3.6
2017-02-06 13:37:45 +03:00
Berker Peksag
d93c4de522
Fix usage of data directive
2017-02-06 13:37:19 +03:00
Berker Peksag
09f939d2c4
Issue #29198 : Merge from 3.6
2017-02-04 09:35:10 +03:00
Berker Peksag
5a001eea5b
Issue #29198 : Merge from 3.5
2017-02-04 09:34:48 +03:00
Berker Peksag
5702fb7b4d
Issue #29198 : Fix indentation and markup in typing.rst
...
Patch by Jelle Zijlstra.
2017-02-04 09:34:16 +03:00
Berker Peksag
b1d3f661d7
Issue #29198 : Merge from 3.6
2017-02-04 09:19:04 +03:00
Berker Peksag
14169b2a89
Issue #29198 : Merge from 3.5
2017-02-04 09:18:42 +03:00
Berker Peksag
38962a6fe2
Issue #29198 : Document typing.AsyncGenerator
...
Patch by Jelle Zijlstra.
2017-02-04 09:18:11 +03:00
Victor Stinner
3f2d10132d
Issue #29300 : Convert _struct module to Argument Clinic
...
* The struct module now requires contiguous buffers.
* Convert most functions and methods of the _struct module to Argument Clinic
* Use "Py_buffer" type for the "buffer" argument. Argument Clinic is
responsible to create and release the Py_buffer object.
* Use "PyStructObject *" type for self to avoid explicit conversions.
* Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
* Rephrase docstrings.
* Rename "fmt" argument to "format" in docstrings and the documentation.
As a side effect, functions and methods which used METH_VARARGS calling
convention like struct.pack() now use the METH_FASTCALL calling convention
which avoids the creation of temporary tuple to pass positional arguments and
so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%)::
$ ./python -m perf timeit \
-s 'import struct; pack=struct.pack' 'pack("i", 1)' \
--compare-to=../default-ref/python
Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%)
Significant (t=295.91)
Patch co-written with Serhiy Storchaka.
2017-02-02 12:09:30 +01:00
Mariatta Wijaya
bb19bf275b
Issue #29381 : merge with 3.6
2017-02-01 21:03:48 -08:00
Mariatta Wijaya
23dcccb75b
Issue #29381 : Clarify ordering of UNIX shebang line as source encoding line
2017-02-01 20:55:47 -08:00
Mariatta Wijaya
77bb0f4900
Backed out changeset 3d712292f2fa
2017-02-01 20:38:55 -08:00
Mariatta Wijaya
e2d8bc52c4
Issue #29381 : Clarify ordering of UNIX shebang line as source encoding line
2017-02-01 20:21:22 -08:00
Berker Peksag
ebf8a6d9b0
Issue #29407 : Merge from 3.6
2017-02-01 22:38:12 +03:00
Berker Peksag
c6fe419d1b
Issue #29407 : Merge from 3.5
2017-02-01 22:37:49 +03:00
Berker Peksag
d5adb63673
Issue #29407 : Remove redundant ensure_future() calls in factorial example
2017-02-01 22:37:16 +03:00
Guido van Rossum
934aba66ef
Issue #29377 : Add three new wrappers to types.py (Manuel Krebber).
2017-02-01 10:55:58 -08:00
Martin Panter
f24bcccefd
Issue #28822 : Add susp-ignored entry for NEWS; fix grammar
2017-01-29 23:37:56 +00:00
Martin Panter
d5feb49711
Issues #11670 : Merge configparser doc from 3.6
2017-01-29 23:37:50 +00:00
Martin Panter
ba964cc5f7
Issues #29349 : Merge Py 2.6+ compatibility from 3.6
2017-01-29 23:37:24 +00:00
Martin Panter
e334a53343
Issues #11670 : Merge configparser doc from 3.5
2017-01-29 23:36:39 +00:00
Martin Panter
b154113251
Issues #29349 : Merge Py 2.6+ compatibility from 3.5
2017-01-29 23:34:52 +00:00
Martin Panter
1f10671fc8
Issue #11670 : readfp(fp) parameter name is different to read_file(f)
2017-01-29 23:33:27 +00:00
Martin Panter
9a454021a4
Issue #29349 : Use __future__ print_function; Sphinx may use Python 2.6+
2017-01-29 23:33:13 +00:00
Martin Panter
c654f0acf9
Issues #29349 : Add NEWS for 3.7; use “with” statement
2017-01-29 10:17:17 +00:00
Martin Panter
3a6dc19f6e
Issues #29349 : Merge Py 2 fix 3.6
2017-01-29 10:16:28 +00:00
Martin Panter
af4e5d9ded
Issues #12067 : Merge hash recommendation from 3.6
2017-01-29 10:10:30 +00:00
Martin Panter
e61592e7e1
Issues #29349 : Merge Py 2 fix 3.5
2017-01-29 10:09:43 +00:00
Martin Panter
2be9889405
Issues #12067 : Merge hash recommendation from 3.5
2017-01-29 10:07:26 +00:00
Martin Panter
8f3fb72309
Issue #29349 : Fix Python 2 syntax in documentation build code
2017-01-29 10:05:02 +00:00
Martin Panter
8dbb0ca573
Issue #12067 : Recommend that hash and equality be consistent
2017-01-29 10:00:23 +00:00
Raymond Hettinger
bea12f4ef3
merge
2017-01-28 20:17:07 -08:00
Raymond Hettinger
e53bd8e2d0
Issue 29310: Document typing.NamedTuple default argument syntax
2017-01-28 20:16:40 -08:00
Vinay Sajip
49688cdaa2
Closes #28784 : Merged update from 3.6.
2017-01-27 13:05:09 +00:00
Vinay Sajip
dc4ce0e013
Fixes #28784 : Clarified use of shlex.shlex with punctuation_chars.
2017-01-27 13:04:33 +00:00
Serhiy Storchaka
6e08baf12d
Issue #27867 : Function PySlice_GetIndicesEx() is deprecated and replaced with
...
a macro if Py_LIMITED_API is not set or set to the value between 0x03050400
and 0x03060000 (not including) or 0x03060100 or higher. Added functions
PySlice_Unpack() and PySlice_AdjustIndices().
2017-01-25 13:27:44 +02:00
Senthil Kumaran
a8df8471d2
[merge 3.6] - issue26149 - Point to Wiki for Editors and Python IDEs on Unix.
...
Patch contributed by Mariatta Wijaya.
2017-01-25 01:48:41 -08:00