]> granicus.if.org Git - python/log
python
9 years agoIssue #26465: merge from 3.5
Ned Deily [Tue, 8 Mar 2016 06:11:14 +0000 (01:11 -0500)]
Issue #26465: merge from 3.5

9 years agoIssue #26465: Update OS X installer build to use OpenSSL 1.0.2g.
Ned Deily [Tue, 8 Mar 2016 06:09:08 +0000 (01:09 -0500)]
Issue #26465: Update OS X installer build to use OpenSSL 1.0.2g.

9 years agoIssue #24324: merge from 3.5
Ned Deily [Tue, 8 Mar 2016 05:40:12 +0000 (00:40 -0500)]
Issue #24324: merge from 3.5

9 years agoIssue #24324: Do not enable unreachable code warnings when using
Ned Deily [Tue, 8 Mar 2016 05:28:37 +0000 (00:28 -0500)]
Issue #24324: Do not enable unreachable code warnings when using
gcc as the option does not work correctly in older versions of gcc
and has been silently removed as of gcc-4.5.

9 years agoIssue #26505: merge from 3.5
Ned Deily [Mon, 7 Mar 2016 19:52:46 +0000 (14:52 -0500)]
Issue #26505: merge from 3.5

9 years agoIssue #26505: Fix typos in getaddrinfo license text.
Ned Deily [Mon, 7 Mar 2016 19:51:59 +0000 (14:51 -0500)]
Issue #26505: Fix typos in getaddrinfo license text.
Patch by Alex Willmer.

9 years agoIssue #24852: Remove outdated "HOWTO Use Python in the web" document
Berker Peksag [Mon, 7 Mar 2016 17:01:05 +0000 (19:01 +0200)]
Issue #24852: Remove outdated "HOWTO Use Python in the web" document

9 years agoIssue #24852: Remove outdated "HOWTO Use Python in the web" document
Berker Peksag [Mon, 7 Mar 2016 17:00:47 +0000 (19:00 +0200)]
Issue #24852: Remove outdated "HOWTO Use Python in the web" document

9 years agoIssue #21034: Remove outdated paragraph from venv documentation
Berker Peksag [Mon, 7 Mar 2016 16:51:06 +0000 (18:51 +0200)]
Issue #21034: Remove outdated paragraph from venv documentation

Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.

9 years agoIssue #21034: Remove outdated paragraph from venv documentation
Berker Peksag [Mon, 7 Mar 2016 16:50:49 +0000 (18:50 +0200)]
Issue #21034: Remove outdated paragraph from venv documentation

Since Python 3.4, there is no need to install pip and setuptools
into a venv manually.

9 years agoMerge
Raymond Hettinger [Mon, 7 Mar 2016 02:12:08 +0000 (18:12 -0800)]
Merge

9 years agoDocument another recipe for itertools: all_equal(). Inspired by David Beazley.
Raymond Hettinger [Mon, 7 Mar 2016 02:11:38 +0000 (18:11 -0800)]
Document another recipe for itertools:  all_equal().  Inspired by David Beazley.

9 years agoCloses #19475: Added timespec to the datetime.isoformat() method.
Alexander Belopolsky [Sun, 6 Mar 2016 19:58:43 +0000 (14:58 -0500)]
Closes #19475: Added timespec to the datetime.isoformat() method.

Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.

Original patch by Alessandro Cucci.

9 years agoIssue #26489: Add dictionary unpacking support to Tools/parser/unparse.py
Berker Peksag [Sun, 6 Mar 2016 14:50:44 +0000 (16:50 +0200)]
Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py

Patch by Guo Ci Teo.

9 years agoIssue #26489: Add dictionary unpacking support to Tools/parser/unparse.py
Berker Peksag [Sun, 6 Mar 2016 14:50:15 +0000 (16:50 +0200)]
Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.py

Patch by Guo Ci Teo.

9 years agoIssue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
Berker Peksag [Sun, 6 Mar 2016 14:17:47 +0000 (16:17 +0200)]
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls

Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.

9 years agoIssue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls
Berker Peksag [Sun, 6 Mar 2016 14:16:40 +0000 (16:16 +0200)]
Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls

Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.

9 years agoNull merge
Serhiy Storchaka [Sun, 6 Mar 2016 13:03:47 +0000 (15:03 +0200)]
Null merge

9 years agoIssue #26167: Backported copy tests.
Serhiy Storchaka [Sun, 6 Mar 2016 13:03:07 +0000 (15:03 +0200)]
Issue #26167: Backported copy tests.

9 years agoIssue #26167: Minimized overhead in copy.copy() and copy.deepcopy().
Serhiy Storchaka [Sun, 6 Mar 2016 12:56:57 +0000 (14:56 +0200)]
Issue #26167: Minimized overhead in copy.copy() and copy.deepcopy().
Optimized copying and deepcopying bytearrays, NotImplemented, slices,
short lists, tuples, dicts, sets.

9 years agoIssue #26015: Added new tests for pickling iterators of mutable sequences.
Serhiy Storchaka [Sun, 6 Mar 2016 12:12:04 +0000 (14:12 +0200)]
Issue #26015: Added new tests for pickling iterators of mutable sequences.

9 years agoIssue #26015: Added new tests for pickling iterators of mutable sequences.
Serhiy Storchaka [Sun, 6 Mar 2016 12:10:24 +0000 (14:10 +0200)]
Issue #26015: Added new tests for pickling iterators of mutable sequences.

9 years agoIssue #25718: Fixed pickling and copying the accumulate() iterator with total is...
Serhiy Storchaka [Sun, 6 Mar 2016 12:02:26 +0000 (14:02 +0200)]
Issue #25718: Fixed pickling and copying the accumulate() iterator with total is None.

9 years agoIssue #25718: Fixed pickling and copying the accumulate() iterator with total is...
Serhiy Storchaka [Sun, 6 Mar 2016 12:00:45 +0000 (14:00 +0200)]
Issue #25718: Fixed pickling and copying the accumulate() iterator with total is None.

9 years agoIssue #26475: Fixed debugging output for regular expressions with the (?x) flag.
Serhiy Storchaka [Sun, 6 Mar 2016 07:17:39 +0000 (09:17 +0200)]
Issue #26475: Fixed debugging output for regular expressions with the (?x) flag.

9 years agoIssue #26475: Fixed debugging output for regular expressions with the (?x) flag.
Serhiy Storchaka [Sun, 6 Mar 2016 07:15:47 +0000 (09:15 +0200)]
Issue #26475: Fixed debugging output for regular expressions with the (?x) flag.

9 years agoIssue #26482: Allowed pickling recursive dequeues.
Serhiy Storchaka [Sun, 6 Mar 2016 06:55:21 +0000 (08:55 +0200)]
Issue #26482: Allowed pickling recursive dequeues.

9 years agoIssue #17940: Remove redundant code from _Section.format_help()
Berker Peksag [Sat, 5 Mar 2016 12:05:45 +0000 (14:05 +0200)]
Issue #17940: Remove redundant code from _Section.format_help()

Output of func(*args) stored in the next line:

    item_help = join([func(*args) for func, args in self.items])

_Section.items only used by HelpFormatter._add_item() and it looks
like it doesn't have any side effects.

Patch by Yogesh Chaudhari.

9 years agoMore logicial order. Move space saving step to just before it is used.
Raymond Hettinger [Fri, 4 Mar 2016 17:55:07 +0000 (09:55 -0800)]
More logicial order.  Move space saving step to just before it is used.

9 years agoFixed typo in pickle tests.
Serhiy Storchaka [Fri, 4 Mar 2016 07:40:03 +0000 (09:40 +0200)]
Fixed typo in pickle tests.

9 years agoFixed typo in pickle tests.
Serhiy Storchaka [Fri, 4 Mar 2016 07:39:47 +0000 (09:39 +0200)]
Fixed typo in pickle tests.

9 years agomerge 3.5 (closes #26478)
Benjamin Peterson [Fri, 4 Mar 2016 06:10:52 +0000 (22:10 -0800)]
merge 3.5 (closes #26478)

9 years agomerge 3.4 (closes #26478)
Benjamin Peterson [Fri, 4 Mar 2016 06:08:01 +0000 (22:08 -0800)]
merge 3.4 (closes #26478)

9 years agoproperly use the ObjArgs variant of CallMethod in dictview binary operations (closes...
Benjamin Peterson [Fri, 4 Mar 2016 06:05:36 +0000 (22:05 -0800)]
properly use the ObjArgs variant of CallMethod in dictview binary operations (closes #26478)

9 years agoIssue #26246: Set initial value of the hidden attr when creating copy button.
Berker Peksag [Wed, 2 Mar 2016 17:40:50 +0000 (19:40 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.

Patch by Liang-Bo Wang.

9 years agoIssue #26246: Set initial value of the hidden attr when creating copy button.
Berker Peksag [Wed, 2 Mar 2016 17:40:30 +0000 (19:40 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.

Patch by Liang-Bo Wang.

9 years agoIssue #26246: Set initial value of the hidden attr when creating copy button.
Berker Peksag [Wed, 2 Mar 2016 17:40:08 +0000 (19:40 +0200)]
Issue #26246: Set initial value of the hidden attr when creating copy button.

Patch by Liang-Bo Wang.

9 years agoIssue #26335: Make mmap.write() return the number of bytes written like
Berker Peksag [Wed, 2 Mar 2016 17:30:18 +0000 (19:30 +0200)]
Issue #26335: Make mmap.write() return the number of bytes written like
other write methods.

Patch by Jakub Stasiak.

9 years agoMerge 3.5 (issue #25888)
Yury Selivanov [Wed, 2 Mar 2016 16:31:06 +0000 (11:31 -0500)]
Merge 3.5 (issue #25888)

9 years agocoroutines: Error when awaiting on coroutine that's being awaited
Yury Selivanov [Wed, 2 Mar 2016 16:30:46 +0000 (11:30 -0500)]
coroutines: Error when awaiting on coroutine that's being awaited

Issue #25888

9 years agoMerge 3.5 (issue #26338)
Yury Selivanov [Wed, 2 Mar 2016 16:17:18 +0000 (11:17 -0500)]
Merge 3.5 (issue #26338)

9 years agoasyncio: Remove duplicate bind addresses in create_server.
Yury Selivanov [Wed, 2 Mar 2016 16:17:01 +0000 (11:17 -0500)]
asyncio: Remove duplicate bind addresses in create_server.

Patch by Sebastien Bourdeauducq (issue #26338)

9 years agoMerge 3.5 (issue #26347)
Yury Selivanov [Wed, 2 Mar 2016 16:08:05 +0000 (11:08 -0500)]
Merge 3.5 (issue #26347)

9 years agoinspect: Fix BoundArguments.apply_defaults to handle empty arguments
Yury Selivanov [Wed, 2 Mar 2016 16:07:47 +0000 (11:07 -0500)]
inspect: Fix BoundArguments.apply_defaults to handle empty arguments

Patch by Frederick Wagner (issue #26347)

9 years agoMerge 3.5 (issue #26221)
Yury Selivanov [Wed, 2 Mar 2016 16:03:53 +0000 (11:03 -0500)]
Merge 3.5 (issue #26221)

9 years agoasyncio: Prevent StopIteration from being thrown into a Future
Yury Selivanov [Wed, 2 Mar 2016 16:03:28 +0000 (11:03 -0500)]
asyncio: Prevent StopIteration from being thrown into a Future

Patch by Chris Angelico (issue #26221)

9 years agoMerge 3.5 (issue #25647)
Yury Selivanov [Wed, 2 Mar 2016 15:49:36 +0000 (10:49 -0500)]
Merge 3.5 (issue #25647)

9 years agoasyncio: Fix @coroutine to recognize CoroWrapper (issue #25647)
Yury Selivanov [Wed, 2 Mar 2016 15:49:16 +0000 (10:49 -0500)]
asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647)

Patch by Vladimir Rutsky.

9 years agoSync selectors.py with upstream asyncio
Yury Selivanov [Wed, 2 Mar 2016 15:43:45 +0000 (10:43 -0500)]
Sync selectors.py with upstream asyncio

9 years agoMerge 3.5
Yury Selivanov [Wed, 2 Mar 2016 15:41:51 +0000 (10:41 -0500)]
Merge 3.5

9 years agoasyncio, selectors: Update to the upstream version
Yury Selivanov [Wed, 2 Mar 2016 15:37:59 +0000 (10:37 -0500)]
asyncio, selectors: Update to the upstream version

9 years agoMerge 3.5
Yury Selivanov [Wed, 2 Mar 2016 15:34:05 +0000 (10:34 -0500)]
Merge 3.5

9 years agoMerge 3.4
Yury Selivanov [Wed, 2 Mar 2016 15:33:47 +0000 (10:33 -0500)]
Merge 3.4

9 years agoasyncio: Update 3.4 asyncio/test_tasks to upstream version
Yury Selivanov [Wed, 2 Mar 2016 15:33:22 +0000 (10:33 -0500)]
asyncio: Update 3.4 asyncio/test_tasks to upstream version

9 years agoFactor-out common subexpression.
Raymond Hettinger [Wed, 2 Mar 2016 08:30:58 +0000 (00:30 -0800)]
Factor-out common subexpression.

9 years agoPut block length computations in a more logical order.
Raymond Hettinger [Wed, 2 Mar 2016 08:06:21 +0000 (00:06 -0800)]
Put block length computations in a more logical order.

9 years agoUpdate assertion in compiler_addop_i()
Victor Stinner [Tue, 1 Mar 2016 22:34:47 +0000 (23:34 +0100)]
Update assertion in compiler_addop_i()

In practice, bytecode instruction arguments are unsigned. Update the assertion
to make it more explicit that argument must be greater or equal than 0.

Rewrite also the comment.

9 years agoMerge 3.5
Victor Stinner [Tue, 1 Mar 2016 21:07:53 +0000 (22:07 +0100)]
Merge 3.5

9 years agoIssue #26464: Fix unicode_fast_translate() again
Victor Stinner [Tue, 1 Mar 2016 20:59:58 +0000 (21:59 +0100)]
Issue #26464: Fix unicode_fast_translate() again

Initialize i variable if the string is non-ASCII.

9 years agoMerge 3.5
Victor Stinner [Tue, 1 Mar 2016 20:30:50 +0000 (21:30 +0100)]
Merge 3.5

9 years agoFix str.translate()
Victor Stinner [Tue, 1 Mar 2016 20:30:30 +0000 (21:30 +0100)]
Fix str.translate()

Issue #26464: Fix str.translate() when string is ASCII and first replacements
removes character, but next replacement uses a non-ASCII character or a string
longer than 1 character. Regression introduced in Python 3.5.0.

9 years agoIssue #26457: Fixed the subnets() methods in IP network classes for the case
Serhiy Storchaka [Tue, 1 Mar 2016 08:26:10 +0000 (10:26 +0200)]
Issue #26457: Fixed the subnets() methods in IP network classes for the case
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.

9 years agoIssue #26457: Fixed the subnets() methods in IP network classes for the case
Serhiy Storchaka [Tue, 1 Mar 2016 08:25:45 +0000 (10:25 +0200)]
Issue #26457: Fixed the subnets() methods in IP network classes for the case
when resulting prefix length is equal to maximal prefix length.
Based on patch by Xiang Zhang.

9 years agoMerge with 3.5
Terry Jan Reedy [Tue, 1 Mar 2016 06:19:02 +0000 (01:19 -0500)]
Merge with 3.5

9 years agoWhitespace
Terry Jan Reedy [Tue, 1 Mar 2016 06:18:47 +0000 (01:18 -0500)]
Whitespace

9 years agoMerge with 3.5
Terry Jan Reedy [Tue, 1 Mar 2016 06:13:21 +0000 (01:13 -0500)]
Merge with 3.5

9 years agoDocument maintenance of idlelib/help.html in idlelib.
Terry Jan Reedy [Tue, 1 Mar 2016 06:13:07 +0000 (01:13 -0500)]
Document maintenance of idlelib/help.html in idlelib.

9 years agoMerge with 3.5
Terry Jan Reedy [Tue, 1 Mar 2016 05:30:20 +0000 (00:30 -0500)]
Merge with 3.5

9 years agoRebase the 3.x version of idlelib/help.html on the 3.5 version of
Terry Jan Reedy [Tue, 1 Mar 2016 05:29:57 +0000 (00:29 -0500)]
Rebase the 3.x version of idlelib/help.html on the 3.5 version of
Doc/build/html/library/idle.html, which is built from Doc/library/idle.rst.
Help.html is an rstrip()ed copy of idle.html that can be pushed.

The displayed content is unchanged because a) the version number is not
displayed, being inherent in the version displaying the file and b) the tt
tag was ignored by the custom parser in idlelib/help.py.  The wrapped
<span class="pre"> tags remain as they were.

This will be merged in 3.6 (without conflict) because the 3.6 help.html is
a copy of the 3.5 file (which was a copy of the 3.4 file).  The two files will
remain the same until either a) there is a content change that only applies
to one of them or b) 3.5 maintenance ends and the 3.6 file is itself rebased.

9 years agoIssue #26385: Merge NamedTemporaryFile fix from 3.5
Martin Panter [Mon, 29 Feb 2016 11:25:09 +0000 (11:25 +0000)]
Issue #26385: Merge NamedTemporaryFile fix from 3.5

9 years agomerge with 3.5
Georg Brandl [Sun, 28 Feb 2016 20:13:44 +0000 (21:13 +0100)]
merge with 3.5

9 years agoUpdate susp-ignore file (#25910).
Georg Brandl [Sun, 28 Feb 2016 20:13:23 +0000 (21:13 +0100)]
Update susp-ignore file (#25910).

9 years agomerge with 3.5
Georg Brandl [Sun, 28 Feb 2016 20:09:45 +0000 (21:09 +0100)]
merge with 3.5

9 years agoFix typo.
Georg Brandl [Sun, 28 Feb 2016 20:09:36 +0000 (21:09 +0100)]
Fix typo.

9 years agoIssue #26385: Cleanup NamedTemporaryFile if open() fails, by SilentGhost
Martin Panter [Sun, 28 Feb 2016 05:22:20 +0000 (05:22 +0000)]
Issue #26385: Cleanup NamedTemporaryFile if open() fails, by SilentGhost

9 years agoIssue #22836: Merge exception reporting from 3.5
Martin Panter [Sun, 28 Feb 2016 03:29:51 +0000 (03:29 +0000)]
Issue #22836: Merge exception reporting from 3.5

9 years agoIssue #22836: Keep exception reports sensible despite errors
Martin Panter [Sun, 28 Feb 2016 03:16:11 +0000 (03:16 +0000)]
Issue #22836: Keep exception reports sensible despite errors

9 years ago#26246: merge with 3.5.
Ezio Melotti [Sat, 27 Feb 2016 06:42:14 +0000 (08:42 +0200)]
#26246: merge with 3.5.

9 years ago#26246: merge with 3.4.
Ezio Melotti [Sat, 27 Feb 2016 06:41:16 +0000 (08:41 +0200)]
#26246: merge with 3.4.

9 years ago#26246: update copybutton.js after JQuery update. Patch by Liang-Bo Wang.
Ezio Melotti [Sat, 27 Feb 2016 06:39:36 +0000 (08:39 +0200)]
#26246: update copybutton.js after JQuery update.  Patch by Liang-Bo Wang.

9 years agocompile.c: inline compiler_use_new_block()
Victor Stinner [Sat, 27 Feb 2016 01:19:22 +0000 (02:19 +0100)]
compile.c: inline compiler_use_new_block()

* Inline compiler_use_new_block() function into its only callee,
  compiler_enter_scope()
* Remove unused NEW_BLOCK() macro

9 years agomerge with 3.5
Georg Brandl [Fri, 26 Feb 2016 18:37:52 +0000 (19:37 +0100)]
merge with 3.5

9 years agoCloses #25910: fix dead and permanently redirected links in the docs. Thanks to Silen...
Georg Brandl [Fri, 26 Feb 2016 18:37:12 +0000 (19:37 +0100)]
Closes #25910: fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.

9 years agomerge with 3.5
Georg Brandl [Fri, 26 Feb 2016 18:18:05 +0000 (19:18 +0100)]
merge with 3.5

9 years agoFix version.
Georg Brandl [Fri, 26 Feb 2016 18:17:39 +0000 (19:17 +0100)]
Fix version.

9 years agomerge with 3.5
Georg Brandl [Fri, 26 Feb 2016 18:16:43 +0000 (19:16 +0100)]
merge with 3.5

9 years agoCloses #26442: fix copy-paste.
Georg Brandl [Fri, 26 Feb 2016 18:16:40 +0000 (19:16 +0100)]
Closes #26442: fix copy-paste.

9 years agomerge with 3.5
Georg Brandl [Fri, 26 Feb 2016 18:14:56 +0000 (19:14 +0100)]
merge with 3.5

9 years agoCloses #26444: typo fixes.
Georg Brandl [Fri, 26 Feb 2016 18:13:47 +0000 (19:13 +0100)]
Closes #26444: typo fixes.

9 years agoremove unused c_encoding struct member
Benjamin Peterson [Fri, 26 Feb 2016 07:25:14 +0000 (23:25 -0800)]
remove unused c_encoding struct member

9 years agorewrite parsestr() so it's comprehensible; remove dead code
Benjamin Peterson [Fri, 26 Feb 2016 07:13:53 +0000 (23:13 -0800)]
rewrite parsestr() so it's comprehensible; remove dead code

9 years agoc_encoding can never be NULL, which allows some code simplification
Benjamin Peterson [Fri, 26 Feb 2016 06:34:45 +0000 (22:34 -0800)]
c_encoding can never be NULL, which allows some code simplification

9 years agoDummy merge with 3.5
Martin Panter [Fri, 26 Feb 2016 00:42:33 +0000 (00:42 +0000)]
Dummy merge with 3.5

9 years agoIssue #26390: Merge pbkdf2_hmac() doc from 3.5
Martin Panter [Fri, 26 Feb 2016 00:41:38 +0000 (00:41 +0000)]
Issue #26390: Merge pbkdf2_hmac() doc from 3.5

9 years agomerge with 3.5
Georg Brandl [Thu, 25 Feb 2016 19:18:00 +0000 (20:18 +0100)]
merge with 3.5

9 years agoCloses #26435: fix syntax in directives. Thanks to Jakub Stasiak.
Georg Brandl [Thu, 25 Feb 2016 19:17:45 +0000 (20:17 +0100)]
Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak.

9 years agomerge with 3.5
Georg Brandl [Thu, 25 Feb 2016 19:14:21 +0000 (20:14 +0100)]
merge with 3.5

9 years agoFix rstlint to also look for indented comments that should be directives.
Georg Brandl [Thu, 25 Feb 2016 19:14:10 +0000 (20:14 +0100)]
Fix rstlint to also look for indented comments that should be directives.

9 years agoIssue #26402: Merge XML-RPC client fix from 3.5
Martin Panter [Thu, 25 Feb 2016 12:13:50 +0000 (12:13 +0000)]
Issue #26402: Merge XML-RPC client fix from 3.5

9 years agoIssue #26402: Fix XML-RPC client retrying after server disconnection
Martin Panter [Thu, 25 Feb 2016 11:53:40 +0000 (11:53 +0000)]
Issue #26402: Fix XML-RPC client retrying after server disconnection

This is a regression introduced in 3.5 by revision eba80326ba53. Fix by Jelte
Fennema, test case by me.