Victor Stinner
27580c1fb5
Replace PyObject_CallFunctionObjArgs() with fastcall
...
* PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func)
* PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg)
PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires
extra work to "parse" C arguments to build a C array of PyObject*.
_PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate
memory on the C stack.
This change is part of the fastcall project. The change on listsort() is
related to the issue #23507 .
2016-12-01 14:43:22 +01:00
Victor Stinner
8be1c39eb3
Backed out changeset 7efddbf1aa70
2016-11-30 12:10:54 +01:00
Victor Stinner
ebea9988e0
Uniformize argument names of "call" functions
...
* Callable object: callable, o, callable_object => func
* Object for method calls: o => obj
* Method name: name or nameid => method
Cleanup also the C code:
* Don't initialize variables to NULL if they are not used before their first
assignement
* Add braces for readability
2016-11-29 18:47:56 +01:00
Guido van Rossum
356ae170ef
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L) (3.6->3.7)
2016-11-29 09:46:29 -08:00
Guido van Rossum
c349374ee6
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L) (3.5->3.6)
2016-11-29 09:46:26 -08:00
Guido van Rossum
61f0a0261f
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L)
2016-11-29 09:46:21 -08:00
Victor Stinner
f9c2405ff8
Null merge 3.6
2016-11-29 18:22:02 +01:00
Victor Stinner
11dd6048aa
Add TCP_CONGESTION and TCP_USER_TIMEOUT
...
Issue #26273 : Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
2016-11-29 16:55:04 +01:00
Victor Stinner
4f8dc3d15c
Add TCP_CONGESTION and TCP_USER_TIMEOUT
...
Issue #26273 : Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
2016-11-29 16:55:04 +01:00
Serhiy Storchaka
baa7223bcd
Issue #28797 : Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:56:07 +02:00
Serhiy Storchaka
9ec07721f4
Issue #28797 : Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:54:17 +02:00
Serhiy Storchaka
3d85fae91f
Issue #28823 : Simplified compiling with opcode BUILD_MAP_UNPACK.
2016-11-28 20:56:37 +02:00
Victor Stinner
b69ee8c386
call_function(): document PyMethod optimization
2016-11-28 18:32:31 +01:00
Victor Stinner
213cc388c7
Reintroduce Python2 support in generate_opcode_h.py
...
Issue #28821 .
Add also a message to show that the command did something :-)
2016-11-28 18:13:52 +01:00
Yury Selivanov
50c13f216e
Merge 3.6 (issue #28635 )
2016-11-28 11:45:58 -05:00
Yury Selivanov
27ec5bfdcb
Issue #28635 : Document Python 3.6 opcode changes
...
Thanks to Serhiy Storchaka for pointing out the missing notes.
Patch by Elvis Pranskevichus.
2016-11-28 11:45:36 -05:00
Victor Stinner
a61a54b149
Issue #28799 : Update Misc/SpecialBuilds.txt
...
Remove CALL_PROFILE.
2016-11-28 12:06:13 +01:00
Victor Stinner
048afd98b3
Remove CALL_PROFILE special build
...
Issue #28799 :
* Remove the PyEval_GetCallStats() function.
* Deprecate the untested and undocumented sys.callstats() function.
* Remove the CALL_PROFILE special build
Use the sys.setprofile() function, cProfile or profile module to profile
function calls.
2016-11-28 11:59:04 +01:00
Serhiy Storchaka
214678e44b
Issue #12844 : More than 255 arguments can now be passed to a function.
2016-11-28 10:52:05 +02:00
Zachary Ware
d070b2ddbb
Merge with 3.6
2016-11-28 00:19:23 -06:00
Zachary Ware
0425fc0fad
Fix grammar in whatsnew
2016-11-28 00:19:07 -06:00
Łukasz Langa
de7bf086d2
Merge 3.6, fix for #24142
2016-11-26 14:04:40 -08:00
Łukasz Langa
8fb4e421f4
Merge 3.5, fix for #24142
2016-11-26 14:02:48 -08:00
Łukasz Langa
47a9a4beda
Fixes #24142 : [configparser] always join multiline values to not leave the parser in an invalid state
2016-11-26 14:00:39 -08:00
Serhiy Storchaka
d80c3fb17b
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:50:21 +02:00
Serhiy Storchaka
0264e46caa
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:49:59 +02:00
Serhiy Storchaka
c7b1a0bbe2
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:43:28 +02:00
Berker Peksag
a1d59af1ef
Merge from 3.6
2016-11-25 20:10:51 +03:00
Berker Peksag
861b685941
Merge from 3.5
2016-11-25 20:10:30 +03:00
Berker Peksag
4931122de8
Add missing square bracket in typing.get_type_hints()
2016-11-25 20:10:07 +03:00
Berker Peksag
a783493743
Issue #28738 : Merge from 3.6
2016-11-25 19:48:05 +03:00
Berker Peksag
d5c6b47851
Issue #28738 : Merge from 3.6
2016-11-25 19:47:43 +03:00
Berker Peksag
219a012156
Issue #28738 : Document SIGBREAK as an acceptable value on Windows
...
Patch by Wojtek Ruszczewski.
2016-11-25 19:46:57 +03:00
Berker Peksag
b121f16894
Issue #28796 : Silence Sphinx warnings
...
WARNING: Inline emphasis start-string without end-string.
Patch by Julien Palard.
2016-11-25 17:38:13 +03:00
Berker Peksag
5d307ef838
Issue #28793 : Merge from 3.6
2016-11-25 17:31:57 +03:00
Berker Peksag
61d9c8639e
Issue #28793 : Fix c/p error in AsyncGenerator documentation
...
Patch by Julien Palard.
2016-11-25 17:31:27 +03:00
Victor Stinner
6193ecd779
Fix a ResourceWarning in generate_opcode_h.py
...
Use a context manager to close the Python file. Replace also open() with
tokenize.open() to handle coding cookie if any in Lib/opcode.py.
2016-11-25 11:59:52 +01:00
Victor Stinner
1018fad6a4
Issue #28792 : Remove aliases from _bisect
...
Remove aliases from the C module. Always implement bisect() and insort()
aliases in bisect.py
Remove also the "# backward compatibility" command, there is no plan to
deprecate nor remove these aliases. When keys are equal, it makes sense to use
bisect.bisect() and bisect.insort().
2016-11-24 23:31:59 +01:00
Victor Stinner
ed6de7345e
Merge 3.6
2016-11-24 22:33:49 +01:00
Victor Stinner
f7d199ff32
Fix _PyGen_yf()
...
Issue #28782 : Fix a bug in the implementation ``yield from`` when checking
if the next instruction is YIELD_FROM. Regression introduced by WORDCODE
(issue #26647 ).
Reviewed by Serhiy Storchaka and Yury Selivanov.
2016-11-24 22:33:01 +01:00
Victor Stinner
fbff9b3f04
Merge 3.6
2016-11-24 22:31:25 +01:00
Guido van Rossum
596a515074
Issue #28773 : Add typing.FrozenSet docs. (Manuel Krebber) (3.6->3.7)
2016-11-24 11:57:05 -08:00
Guido van Rossum
b3c5dc912d
Issue #28773 : Add typing.FrozenSet docs. (Manuel Krebber) (3.5->3.6)
2016-11-24 11:56:40 -08:00
Guido van Rossum
a860286eab
Issue #28773 : Add typing.FrozenSet docs. (Manuel Krebber)
2016-11-24 11:56:00 -08:00
Raymond Hettinger
87d89d9714
merge
2016-11-24 10:50:57 -08:00
Raymond Hettinger
7e45b5c63c
Issue #27100 : Silence deprecation warning in Lib/test/test_with.py
2016-11-24 10:50:34 -08:00
INADA Naoki
6caaf372de
Issue #28532 : Add what's new entry for python -VV option
2016-11-24 17:21:47 +09:00
INADA Naoki
f576343179
Issue #28532 : Add what's new entry for python -VV option
2016-11-24 17:20:40 +09:00
Steve Dower
d2140cce44
Issue #28783 : Embedded and nuget packages incorrect reference missing bdist_wininst command.
2016-11-23 12:23:16 -08:00
Steve Dower
2a94301911
Issue #28783 : Embedded and nuget packages incorrect reference missing bdist_wininst command.
2016-11-23 11:42:35 -08:00