]>
granicus.if.org Git - python/log
Victor Stinner [Thu, 1 Dec 2016 13:45:31 +0000 (14:45 +0100)]
WITH_CLEANUP_START uses fastcall
Modify WITH_CLEANUP_START bytecode: replace PyObject_CallFunctionObjArgs() with
_PyObject_FastCall().
Victor Stinner [Thu, 1 Dec 2016 13:43:22 +0000 (14:43 +0100)]
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.
Victor Stinner [Wed, 30 Nov 2016 11:10:54 +0000 (12:10 +0100)]
Backed out changeset
7efddbf1aa70
Victor Stinner [Tue, 29 Nov 2016 17:47:56 +0000 (18:47 +0100)]
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
Guido van Rossum [Tue, 29 Nov 2016 17:46:29 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L) (3.6->3.7)
Guido van Rossum [Tue, 29 Nov 2016 17:46:26 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L) (3.5->3.6)
Guido van Rossum [Tue, 29 Nov 2016 17:46:21 +0000 (09:46 -0800)]
Issue #28790: Fix error when using Generic and __slots__ (Ivan L)
Victor Stinner [Tue, 29 Nov 2016 17:22:02 +0000 (18:22 +0100)]
Null merge 3.6
Victor Stinner [Tue, 29 Nov 2016 15:55:04 +0000 (16:55 +0100)]
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.
Victor Stinner [Tue, 29 Nov 2016 15:55:04 +0000 (16:55 +0100)]
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.
Serhiy Storchaka [Tue, 29 Nov 2016 07:56:07 +0000 (09:56 +0200)]
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.
Serhiy Storchaka [Tue, 29 Nov 2016 07:54:17 +0000 (09:54 +0200)]
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.
Serhiy Storchaka [Mon, 28 Nov 2016 18:56:37 +0000 (20:56 +0200)]
Issue #28823: Simplified compiling with opcode BUILD_MAP_UNPACK.
Victor Stinner [Mon, 28 Nov 2016 17:32:31 +0000 (18:32 +0100)]
call_function(): document PyMethod optimization
Victor Stinner [Mon, 28 Nov 2016 17:13:52 +0000 (18:13 +0100)]
Reintroduce Python2 support in generate_opcode_h.py
Issue #28821.
Add also a message to show that the command did something :-)
Yury Selivanov [Mon, 28 Nov 2016 16:45:58 +0000 (11:45 -0500)]
Merge 3.6 (issue #28635)
Yury Selivanov [Mon, 28 Nov 2016 16:45:36 +0000 (11:45 -0500)]
Issue #28635: Document Python 3.6 opcode changes
Thanks to Serhiy Storchaka for pointing out the missing notes.
Patch by Elvis Pranskevichus.
Victor Stinner [Mon, 28 Nov 2016 11:06:13 +0000 (12:06 +0100)]
Issue #28799: Update Misc/SpecialBuilds.txt
Remove CALL_PROFILE.
Victor Stinner [Mon, 28 Nov 2016 10:59:04 +0000 (11:59 +0100)]
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.
Serhiy Storchaka [Mon, 28 Nov 2016 08:52:05 +0000 (10:52 +0200)]
Issue #12844: More than 255 arguments can now be passed to a function.
Zachary Ware [Mon, 28 Nov 2016 06:19:23 +0000 (00:19 -0600)]
Merge with 3.6
Zachary Ware [Mon, 28 Nov 2016 06:19:07 +0000 (00:19 -0600)]
Fix grammar in whatsnew
Łukasz Langa [Sat, 26 Nov 2016 22:04:40 +0000 (14:04 -0800)]
Merge 3.6, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:02:48 +0000 (14:02 -0800)]
Merge 3.5, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:00:39 +0000 (14:00 -0800)]
Fixes #24142: [configparser] always join multiline values to not leave the parser in an invalid state
Serhiy Storchaka [Sat, 26 Nov 2016 11:50:21 +0000 (13:50 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Serhiy Storchaka [Sat, 26 Nov 2016 11:49:59 +0000 (13:49 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Serhiy Storchaka [Sat, 26 Nov 2016 11:43:28 +0000 (13:43 +0200)]
Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
in the documentation.
Berker Peksag [Fri, 25 Nov 2016 17:10:51 +0000 (20:10 +0300)]
Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 17:10:30 +0000 (20:10 +0300)]
Merge from 3.5
Berker Peksag [Fri, 25 Nov 2016 17:10:07 +0000 (20:10 +0300)]
Add missing square bracket in typing.get_type_hints()
Berker Peksag [Fri, 25 Nov 2016 16:48:05 +0000 (19:48 +0300)]
Issue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:47:43 +0000 (19:47 +0300)]
Issue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:46:57 +0000 (19:46 +0300)]
Issue #28738: Document SIGBREAK as an acceptable value on Windows
Patch by Wojtek Ruszczewski.
Berker Peksag [Fri, 25 Nov 2016 14:38:13 +0000 (17:38 +0300)]
Issue #28796: Silence Sphinx warnings
WARNING: Inline emphasis start-string without end-string.
Patch by Julien Palard.
Berker Peksag [Fri, 25 Nov 2016 14:31:57 +0000 (17:31 +0300)]
Issue #28793: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 14:31:27 +0000 (17:31 +0300)]
Issue #28793: Fix c/p error in AsyncGenerator documentation
Patch by Julien Palard.
Victor Stinner [Fri, 25 Nov 2016 10:59:52 +0000 (11:59 +0100)]
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.
Victor Stinner [Thu, 24 Nov 2016 22:31:59 +0000 (23:31 +0100)]
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().
Victor Stinner [Thu, 24 Nov 2016 21:33:49 +0000 (22:33 +0100)]
Merge 3.6
Victor Stinner [Thu, 24 Nov 2016 21:33:01 +0000 (22:33 +0100)]
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.
Victor Stinner [Thu, 24 Nov 2016 21:31:25 +0000 (22:31 +0100)]
Merge 3.6
Guido van Rossum [Thu, 24 Nov 2016 19:57:05 +0000 (11:57 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.6->3.7)
Guido van Rossum [Thu, 24 Nov 2016 19:56:40 +0000 (11:56 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.5->3.6)
Guido van Rossum [Thu, 24 Nov 2016 19:56:00 +0000 (11:56 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber)
Raymond Hettinger [Thu, 24 Nov 2016 18:50:57 +0000 (10:50 -0800)]
merge
Raymond Hettinger [Thu, 24 Nov 2016 18:50:34 +0000 (10:50 -0800)]
Issue #27100: Silence deprecation warning in Lib/test/test_with.py
INADA Naoki [Thu, 24 Nov 2016 08:21:47 +0000 (17:21 +0900)]
Issue #28532: Add what's new entry for python -VV option
INADA Naoki [Thu, 24 Nov 2016 08:20:40 +0000 (17:20 +0900)]
Issue #28532: Add what's new entry for python -VV option
Steve Dower [Wed, 23 Nov 2016 20:23:16 +0000 (12:23 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.
Steve Dower [Wed, 23 Nov 2016 19:42:35 +0000 (11:42 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.
Steve Dower [Wed, 23 Nov 2016 18:23:47 +0000 (10:23 -0800)]
Issue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst command.
Serhiy Storchaka [Wed, 23 Nov 2016 13:13:00 +0000 (15:13 +0200)]
Issue #28774: Simplified encoding a str result of an error handler in ASCII
and Latin1 encoders.
Xiang Zhang [Wed, 23 Nov 2016 11:34:01 +0000 (19:34 +0800)]
Issue #28774: Fix start/end pos in unicode_encode_ucs1().
Fix error position of the unicode error in ASCII and Latin1
encoders when a string returned by the error handler contains multiple
non-encodable characters (non-ASCII for the ASCII codec, characters out
of the U+0000-U+00FF range for Latin1).
Victor Stinner [Tue, 22 Nov 2016 22:04:39 +0000 (23:04 +0100)]
Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup
groupindex must a dictionary and indexgroup must be a tuple.
Previously, indexgroup was a list. Use a tuple to reduce the memory usage.
Victor Stinner [Tue, 22 Nov 2016 21:53:18 +0000 (22:53 +0100)]
Issue #28770: Update python-gdb.py for fastcalls
Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict()
frames.
Thanks to the new code to handle fast calls, python-gdb.py is now also able to
detect the <built-in id method of module ...> frame.
Raymond Hettinger [Tue, 22 Nov 2016 19:50:56 +0000 (11:50 -0800)]
merge
Raymond Hettinger [Tue, 22 Nov 2016 19:50:40 +0000 (11:50 -0800)]
Issue #27100: Fix ref leak
Steve Dower [Tue, 22 Nov 2016 19:49:09 +0000 (11:49 -0800)]
Issue #28573: Missing sys._mercurial info and other build issues.
Steve Dower [Tue, 22 Nov 2016 19:48:52 +0000 (11:48 -0800)]
Issue #28573: Missing sys._mercurial info and other build issues.
Victor Stinner [Tue, 22 Nov 2016 14:30:53 +0000 (15:30 +0100)]
Merge 3.6
Victor Stinner [Tue, 22 Nov 2016 14:30:38 +0000 (15:30 +0100)]
Issue #28727: Optimize pattern_richcompare() for a==a
A pattern is equal to itself.
Victor Stinner [Tue, 22 Nov 2016 14:23:00 +0000 (15:23 +0100)]
Issue #28727: Fix typo in pattern_richcompare()
Typo catched by Serhiy Storchaka, thanks!
Victor Stinner [Tue, 22 Nov 2016 12:10:02 +0000 (13:10 +0100)]
Merge 3.6
Victor Stinner [Tue, 22 Nov 2016 12:09:39 +0000 (13:09 +0100)]
Issue #28023: Fix python-gdb.py on old GDB versions
Replace int(value.address)+offset with value.cast(unsigned char*)+offset.
It seems like int(value.address) fails on old versions of GDB.
INADA Naoki [Tue, 22 Nov 2016 10:43:11 +0000 (19:43 +0900)]
Issue #28023: Fix python-gdb.py didn't support new dict implementation
INADA Naoki [Tue, 22 Nov 2016 10:40:58 +0000 (19:40 +0900)]
Issue #28023: Fix python-gdb.py didn't support new dict implementation
Ned Deily [Tue, 22 Nov 2016 06:25:55 +0000 (01:25 -0500)]
merge tag from 3.6
Ned Deily [Tue, 22 Nov 2016 06:21:04 +0000 (01:21 -0500)]
Start 3.6.0rc1. (Note, patch level was incorrectly set to 3.6.0b4+ following b3. It is now b4+ again.)
Serhiy Storchaka [Tue, 22 Nov 2016 05:58:08 +0000 (07:58 +0200)]
Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
type "const char *" rather of "char *".
Ned Deily [Tue, 22 Nov 2016 04:31:39 +0000 (23:31 -0500)]
Added tag v3.6.0b4 for changeset
18496abdb3d5
Ned Deily [Tue, 22 Nov 2016 04:30:55 +0000 (23:30 -0500)]
Version bump for 3.6.0b4
Ned Deily [Tue, 22 Nov 2016 04:24:38 +0000 (23:24 -0500)]
Update pydoc topics for 3.6.0b4
Raymond Hettinger [Tue, 22 Nov 2016 01:24:58 +0000 (17:24 -0800)]
merge
Raymond Hettinger [Tue, 22 Nov 2016 01:24:23 +0000 (17:24 -0800)]
Issue #27100: With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.)
Raymond Hettinger [Tue, 22 Nov 2016 00:59:30 +0000 (16:59 -0800)]
merge
Raymond Hettinger [Tue, 22 Nov 2016 00:59:04 +0000 (16:59 -0800)]
Issue #26163: Disable periodically failing test which was overly demanding of the frozenset hash function effectiveness
Raymond Hettinger [Tue, 22 Nov 2016 00:48:25 +0000 (16:48 -0800)]
merge
Raymond Hettinger [Tue, 22 Nov 2016 00:48:10 +0000 (16:48 -0800)]
Issue #5830: Add test for
ee476248a74a . (Contributed by Serhiy Storchaka.)
Raymond Hettinger [Tue, 22 Nov 2016 00:31:32 +0000 (16:31 -0800)]
merge
Raymond Hettinger [Tue, 22 Nov 2016 00:31:02 +0000 (16:31 -0800)]
Issue #27825: Improve for statistics data arguments. (Contributed by Mariatta Wijaya.)
Raymond Hettinger [Tue, 22 Nov 2016 00:29:50 +0000 (16:29 -0800)]
Issue #28587: Improve list examples in the tutorial
Raymond Hettinger [Mon, 21 Nov 2016 23:32:26 +0000 (15:32 -0800)]
merge
Raymond Hettinger [Mon, 21 Nov 2016 23:32:08 +0000 (15:32 -0800)]
Issue #28743: Reduce memory consumption for random module tests
Raymond Hettinger [Mon, 21 Nov 2016 23:13:38 +0000 (15:13 -0800)]
merge
Raymond Hettinger [Mon, 21 Nov 2016 23:13:18 +0000 (15:13 -0800)]
Fix grammar
Raymond Hettinger [Mon, 21 Nov 2016 23:12:54 +0000 (15:12 -0800)]
Issue 28587: list.index documentation missing start and stop arguments. (Contributed by Mariatta Wijaya.)
Yury Selivanov [Mon, 21 Nov 2016 22:47:54 +0000 (17:47 -0500)]
Merge 3.6 (issue #28652)
Yury Selivanov [Mon, 21 Nov 2016 22:47:41 +0000 (17:47 -0500)]
Merge 3.5 (issue #28652)
Yury Selivanov [Mon, 21 Nov 2016 22:47:27 +0000 (17:47 -0500)]
Issue #28652: Partially rollback previous changes
Allow AF_UNIX in create_server & create_connection
Raymond Hettinger [Mon, 21 Nov 2016 22:34:51 +0000 (14:34 -0800)]
merge
Raymond Hettinger [Mon, 21 Nov 2016 22:34:33 +0000 (14:34 -0800)]
Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo).
Serhiy Storchaka [Mon, 21 Nov 2016 22:30:32 +0000 (00:30 +0200)]
Issue #28752: Restored the __reduce__() methods of datetime objects.
Serhiy Storchaka [Mon, 21 Nov 2016 22:29:42 +0000 (00:29 +0200)]
Issue #28752: Restored the __reduce__() methods of datetime objects.
Raymond Hettinger [Mon, 21 Nov 2016 22:24:51 +0000 (14:24 -0800)]
Merge
Raymond Hettinger [Mon, 21 Nov 2016 22:24:32 +0000 (14:24 -0800)]
Issue 28751: Fix comments in code.h. (Contributed by Ned Batchelder).
Raymond Hettinger [Mon, 21 Nov 2016 22:13:29 +0000 (14:13 -0800)]
merge
Raymond Hettinger [Mon, 21 Nov 2016 22:13:07 +0000 (14:13 -0800)]
Add analysis section to motivate the single server queue example
Raymond Hettinger [Mon, 21 Nov 2016 20:34:12 +0000 (12:34 -0800)]
merge
Raymond Hettinger [Mon, 21 Nov 2016 20:33:50 +0000 (12:33 -0800)]
Misc readability and organization improvements for the random docs