]> granicus.if.org Git - python/log
python
8 years agoMerge 3.6, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:04:40 +0000 (14:04 -0800)]
Merge 3.6, fix for #24142

8 years agoMerge 3.5, fix for #24142
Łukasz Langa [Sat, 26 Nov 2016 22:02:48 +0000 (14:02 -0800)]
Merge 3.5, fix for #24142

8 years agoFixes #24142: [configparser] always join multiline values to not leave the parser...
Ł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

8 years agoIssue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
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.

8 years agoIssue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
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.

8 years agoIssue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges
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.

8 years agoMerge from 3.6
Berker Peksag [Fri, 25 Nov 2016 17:10:51 +0000 (20:10 +0300)]
Merge from 3.6

8 years agoMerge from 3.5
Berker Peksag [Fri, 25 Nov 2016 17:10:30 +0000 (20:10 +0300)]
Merge from 3.5

8 years agoAdd missing square bracket in typing.get_type_hints()
Berker Peksag [Fri, 25 Nov 2016 17:10:07 +0000 (20:10 +0300)]
Add missing square bracket in typing.get_type_hints()

8 years agoIssue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:48:05 +0000 (19:48 +0300)]
Issue #28738: Merge from 3.6

8 years agoIssue #28738: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 16:47:43 +0000 (19:47 +0300)]
Issue #28738: Merge from 3.6

8 years agoIssue #28738: Document SIGBREAK as an acceptable value on Windows
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.

8 years agoIssue #28796: Silence Sphinx warnings
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.

8 years agoIssue #28793: Merge from 3.6
Berker Peksag [Fri, 25 Nov 2016 14:31:57 +0000 (17:31 +0300)]
Issue #28793: Merge from 3.6

8 years agoIssue #28793: Fix c/p error in AsyncGenerator documentation
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.

8 years agoFix a ResourceWarning in generate_opcode_h.py
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.

8 years agoIssue #28792: Remove aliases from _bisect
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().

8 years agoMerge 3.6
Victor Stinner [Thu, 24 Nov 2016 21:33:49 +0000 (22:33 +0100)]
Merge 3.6

8 years agoFix _PyGen_yf()
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.

8 years agoMerge 3.6
Victor Stinner [Thu, 24 Nov 2016 21:31:25 +0000 (22:31 +0100)]
Merge 3.6

8 years agoIssue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.6->3.7)
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)

8 years agoIssue #28773: Add typing.FrozenSet docs. (Manuel Krebber) (3.5->3.6)
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)

8 years agoIssue #28773: Add typing.FrozenSet docs. (Manuel Krebber)
Guido van Rossum [Thu, 24 Nov 2016 19:56:00 +0000 (11:56 -0800)]
Issue #28773: Add typing.FrozenSet docs. (Manuel Krebber)

8 years agomerge
Raymond Hettinger [Thu, 24 Nov 2016 18:50:57 +0000 (10:50 -0800)]
merge

8 years agoIssue #27100: Silence deprecation warning in Lib/test/test_with.py
Raymond Hettinger [Thu, 24 Nov 2016 18:50:34 +0000 (10:50 -0800)]
Issue #27100:  Silence deprecation warning in Lib/test/test_with.py

8 years agoIssue #28532: Add what's new entry for python -VV option
INADA Naoki [Thu, 24 Nov 2016 08:21:47 +0000 (17:21 +0900)]
Issue #28532: Add what's new entry for python -VV option

8 years agoIssue #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

8 years agoIssue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst...
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.

8 years agoIssue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst...
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.

8 years agoIssue #28783: Embedded and nuget packages incorrect reference missing bdist_wininst...
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.

8 years agoIssue #28774: Simplified encoding a str result of an error handler in ASCII
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.

8 years agoIssue #28774: Fix start/end pos in unicode_encode_ucs1().
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).

8 years agoIssue #28765: _sre.compile() now checks the type of groupindex and indexgroup
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.

8 years agoIssue #28770: Update python-gdb.py for fastcalls
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.

8 years agomerge
Raymond Hettinger [Tue, 22 Nov 2016 19:50:56 +0000 (11:50 -0800)]
merge

8 years agoIssue #27100: Fix ref leak
Raymond Hettinger [Tue, 22 Nov 2016 19:50:40 +0000 (11:50 -0800)]
Issue #27100:  Fix ref leak

8 years agoIssue #28573: Missing sys._mercurial info and other build issues.
Steve Dower [Tue, 22 Nov 2016 19:49:09 +0000 (11:49 -0800)]
Issue #28573: Missing sys._mercurial info and other build issues.

8 years agoIssue #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.

8 years agoMerge 3.6
Victor Stinner [Tue, 22 Nov 2016 14:30:53 +0000 (15:30 +0100)]
Merge 3.6

8 years agoIssue #28727: Optimize pattern_richcompare() for a==a
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.

8 years agoIssue #28727: Fix typo in pattern_richcompare()
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!

8 years agoMerge 3.6
Victor Stinner [Tue, 22 Nov 2016 12:10:02 +0000 (13:10 +0100)]
Merge 3.6

8 years agoIssue #28023: Fix python-gdb.py on old GDB versions
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.

8 years agoIssue #28023: Fix python-gdb.py didn't support new dict implementation
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

8 years agoIssue #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

8 years agomerge tag from 3.6
Ned Deily [Tue, 22 Nov 2016 06:25:55 +0000 (01:25 -0500)]
merge tag from 3.6

8 years agoStart 3.6.0rc1. (Note, patch level was incorrectly set to 3.6.0b4+ following b3....
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.)

8 years agoIssue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
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 *".

8 years agoAdded tag v3.6.0b4 for changeset 18496abdb3d5
Ned Deily [Tue, 22 Nov 2016 04:31:39 +0000 (23:31 -0500)]
Added tag v3.6.0b4 for changeset 18496abdb3d5

8 years agoVersion bump for 3.6.0b4 v3.6.0b4
Ned Deily [Tue, 22 Nov 2016 04:30:55 +0000 (23:30 -0500)]
Version bump for 3.6.0b4

8 years agoUpdate pydoc topics for 3.6.0b4
Ned Deily [Tue, 22 Nov 2016 04:24:38 +0000 (23:24 -0500)]
Update pydoc topics for 3.6.0b4

8 years agomerge
Raymond Hettinger [Tue, 22 Nov 2016 01:24:58 +0000 (17:24 -0800)]
merge

8 years agoIssue #27100: With statement reports missing __enter__ before __exit__. (Contribute...
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.)

8 years agomerge
Raymond Hettinger [Tue, 22 Nov 2016 00:59:30 +0000 (16:59 -0800)]
merge

8 years agoIssue #26163: Disable periodically failing test which was overly demanding of the...
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

8 years agomerge
Raymond Hettinger [Tue, 22 Nov 2016 00:48:25 +0000 (16:48 -0800)]
merge

8 years agoIssue #5830: Add test for ee476248a74a. (Contributed by Serhiy Storchaka.)
Raymond Hettinger [Tue, 22 Nov 2016 00:48:10 +0000 (16:48 -0800)]
Issue #5830:  Add test for ee476248a74a.  (Contributed by Serhiy Storchaka.)

8 years agomerge
Raymond Hettinger [Tue, 22 Nov 2016 00:31:32 +0000 (16:31 -0800)]
merge

8 years agoIssue #27825: Improve for statistics data arguments. (Contributed by Mariatta Wijaya.)
Raymond Hettinger [Tue, 22 Nov 2016 00:31:02 +0000 (16:31 -0800)]
Issue #27825: Improve for statistics data arguments. (Contributed by Mariatta Wijaya.)

8 years agoIssue #28587: Improve list examples in the tutorial
Raymond Hettinger [Tue, 22 Nov 2016 00:29:50 +0000 (16:29 -0800)]
Issue #28587: Improve list examples in the tutorial

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 23:32:26 +0000 (15:32 -0800)]
merge

8 years agoIssue #28743: Reduce memory consumption for random module tests
Raymond Hettinger [Mon, 21 Nov 2016 23:32:08 +0000 (15:32 -0800)]
Issue #28743:  Reduce memory consumption for random module tests

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 23:13:38 +0000 (15:13 -0800)]
merge

8 years agoFix grammar
Raymond Hettinger [Mon, 21 Nov 2016 23:13:18 +0000 (15:13 -0800)]
Fix grammar

8 years agoIssue 28587: list.index documentation missing start and stop arguments. (Contributed...
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.)

8 years agoMerge 3.6 (issue #28652)
Yury Selivanov [Mon, 21 Nov 2016 22:47:54 +0000 (17:47 -0500)]
Merge 3.6 (issue #28652)

8 years agoMerge 3.5 (issue #28652)
Yury Selivanov [Mon, 21 Nov 2016 22:47:41 +0000 (17:47 -0500)]
Merge 3.5 (issue #28652)

8 years agoIssue #28652: Partially rollback previous changes
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

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 22:34:51 +0000 (14:34 -0800)]
merge

8 years agoIssue 28475: Improve error message for random.sample() with k < 0. (Contributed...
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).

8 years agoIssue #28752: Restored the __reduce__() methods of datetime objects.
Serhiy Storchaka [Mon, 21 Nov 2016 22:30:32 +0000 (00:30 +0200)]
Issue #28752: Restored the __reduce__() methods of datetime objects.

8 years agoIssue #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.

8 years agoMerge
Raymond Hettinger [Mon, 21 Nov 2016 22:24:51 +0000 (14:24 -0800)]
Merge

8 years agoIssue 28751: Fix comments in code.h. (Contributed by Ned Batchelder).
Raymond Hettinger [Mon, 21 Nov 2016 22:24:32 +0000 (14:24 -0800)]
Issue 28751: Fix comments in code.h.  (Contributed by Ned Batchelder).

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 22:13:29 +0000 (14:13 -0800)]
merge

8 years agoAdd analysis section to motivate the single server queue example
Raymond Hettinger [Mon, 21 Nov 2016 22:13:07 +0000 (14:13 -0800)]
Add analysis section to motivate the single server queue example

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 20:34:12 +0000 (12:34 -0800)]
merge

8 years agoMisc readability and organization improvements for the random docs
Raymond Hettinger [Mon, 21 Nov 2016 20:33:50 +0000 (12:33 -0800)]
Misc readability and organization improvements for the random docs

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 18:52:20 +0000 (10:52 -0800)]
merge

8 years agoAdd a seealso section for further reference and skill building
Raymond Hettinger [Mon, 21 Nov 2016 18:52:04 +0000 (10:52 -0800)]
Add a seealso section for further reference and skill building

8 years agomerge
Raymond Hettinger [Mon, 21 Nov 2016 18:16:25 +0000 (10:16 -0800)]
merge

8 years agoSimplify code in an example
Raymond Hettinger [Mon, 21 Nov 2016 18:16:01 +0000 (10:16 -0800)]
Simplify code in an example

8 years agoclose issue28172: Change all example enum member names to uppercase, per Guido; patch...
Ethan Furman [Mon, 21 Nov 2016 17:22:40 +0000 (09:22 -0800)]
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.

8 years agoclose issue28172: Change all example enum member names to uppercase, per Guido; patch...
Ethan Furman [Mon, 21 Nov 2016 17:22:05 +0000 (09:22 -0800)]
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.

8 years agoNEWS update
Ethan Furman [Mon, 21 Nov 2016 16:39:57 +0000 (08:39 -0800)]
NEWS update

8 years agoissue28082: actually include NEWS entry
Ethan Furman [Mon, 21 Nov 2016 16:39:32 +0000 (08:39 -0800)]
issue28082: actually include NEWS entry

8 years agoupdate news and re doc
Ethan Furman [Mon, 21 Nov 2016 16:30:55 +0000 (08:30 -0800)]
update news and re doc

8 years agocloses issue28082: doc update and NEWS entry
Ethan Furman [Mon, 21 Nov 2016 16:29:31 +0000 (08:29 -0800)]
closes issue28082: doc update and NEWS entry

8 years agocloses issue23591: add NEWS entry
Ethan Furman [Mon, 21 Nov 2016 16:28:56 +0000 (08:28 -0800)]
closes issue23591: add NEWS entry

8 years agoIssue #28731: Optimize _PyDict_NewPresized() to create correct size dict
INADA Naoki [Mon, 21 Nov 2016 15:57:02 +0000 (00:57 +0900)]
Issue #28731: Optimize _PyDict_NewPresized() to create correct size dict

Improve speed of dict literal with constant keys up to 30%.

8 years agoIssue #28688: Null merge 3.6
Victor Stinner [Mon, 21 Nov 2016 15:45:54 +0000 (16:45 +0100)]
Issue #28688: Null merge 3.6

8 years agoIssue #28688: Null merge 3.5
Victor Stinner [Mon, 21 Nov 2016 15:45:19 +0000 (16:45 +0100)]
Issue #28688: Null merge 3.5

The Python 3.5 change must not be applied to Python 3.6.

8 years agoIssue #28688: Remove warnings.filters check from regrtest
Victor Stinner [Mon, 21 Nov 2016 15:44:01 +0000 (16:44 +0100)]
Issue #28688: Remove warnings.filters check from regrtest

Reloading the warnings module duplicates filters in warnings.filters. Fixing
the issue is tricky. It was decided to simply remove the check from Python 3.5,
since the bug only impacts Python unit tests, not real applications.

The check is kept in Python 3.6 and newer.

8 years agoMerge 3.6
Victor Stinner [Mon, 21 Nov 2016 15:39:01 +0000 (16:39 +0100)]
Merge 3.6

8 years agoImplement rich comparison for _sre.SRE_Pattern
Victor Stinner [Mon, 21 Nov 2016 15:35:08 +0000 (16:35 +0100)]
Implement rich comparison for _sre.SRE_Pattern

Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383: don't duplicate warning filters when the warnings
module is reloaded (thing usually only done in unit tests).

8 years agoMerge doc fixes from 3.6
Martin Panter [Mon, 21 Nov 2016 13:41:07 +0000 (13:41 +0000)]
Merge doc fixes from 3.6

8 years agoFix up grammar, markup, etc in 3.6 What’s New
Martin Panter [Mon, 21 Nov 2016 13:38:59 +0000 (13:38 +0000)]
Fix up grammar, markup, etc in 3.6 What’s New

8 years agoMerge doc fixup from 3.5
Martin Panter [Mon, 21 Nov 2016 13:40:40 +0000 (13:40 +0000)]
Merge doc fixup from 3.5

8 years agoFix indentation
Martin Panter [Mon, 21 Nov 2016 13:36:36 +0000 (13:36 +0000)]
Fix indentation

8 years agoIssue #28532: Show sys.version when -V option is supplied twice
INADA Naoki [Mon, 21 Nov 2016 11:58:10 +0000 (20:58 +0900)]
Issue #28532: Show sys.version when -V option is supplied twice