Serhiy Storchaka
de128e19e2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:12:04 +02:00
Serhiy Storchaka
aabafe7bc2
Issue #26015 : Added new tests for pickling iterators of mutable sequences.
2016-03-06 14:10:24 +02:00
Serhiy Storchaka
5608411a96
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:02:26 +02:00
Serhiy Storchaka
d55162517d
Issue #25718 : Fixed pickling and copying the accumulate() iterator with total is None.
2016-03-06 14:00:45 +02:00
Serhiy Storchaka
b6bfce6c0b
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:17:39 +02:00
Serhiy Storchaka
a01a144aab
Issue #26475 : Fixed debugging output for regular expressions with the (?x) flag.
2016-03-06 09:15:47 +02:00
Serhiy Storchaka
a0d416f0d1
Issue #26482 : Allowed pickling recursive dequeues.
2016-03-06 08:55:21 +02:00
Berker Peksag
841b930a41
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.
2016-03-05 14:05:45 +02:00
Raymond Hettinger
d79d5b1a50
More logicial order. Move space saving step to just before it is used.
2016-03-04 09:55:07 -08:00
Serhiy Storchaka
96c058b4de
Fixed typo in pickle tests.
2016-03-04 09:40:03 +02:00
Serhiy Storchaka
be70002866
Fixed typo in pickle tests.
2016-03-04 09:39:47 +02:00
Benjamin Peterson
0f04bc7959
merge 3.5 ( closes #26478 )
2016-03-03 22:10:52 -08:00
Benjamin Peterson
cfc2a1fc70
merge 3.4 ( closes #26478 )
2016-03-03 22:08:01 -08:00
Benjamin Peterson
f11b25b081
properly use the ObjArgs variant of CallMethod in dictview binary operations ( closes #26478 )
2016-03-03 22:05:36 -08:00
Berker Peksag
998f7d719b
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:50 +02:00
Berker Peksag
ff47cfbc66
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:30 +02:00
Berker Peksag
25c0ef518d
Issue #26246 : Set initial value of the hidden attr when creating copy button.
...
Patch by Liang-Bo Wang.
2016-03-02 19:40:08 +02:00
Berker Peksag
6282e656e9
Issue #26335 : Make mmap.write() return the number of bytes written like
...
other write methods.
Patch by Jakub Stasiak.
2016-03-02 19:30:18 +02:00
Yury Selivanov
d2dc15b26b
Merge 3.5 (issue #25888 )
2016-03-02 11:31:06 -05:00
Yury Selivanov
c724bae51c
coroutines: Error when awaiting on coroutine that's being awaited
...
Issue #25888
2016-03-02 11:30:46 -05:00
Yury Selivanov
5604446b3b
Merge 3.5 (issue #26338 )
2016-03-02 11:17:18 -05:00
Yury Selivanov
e076ffb068
asyncio: Remove duplicate bind addresses in create_server.
...
Patch by Sebastien Bourdeauducq (issue #26338 )
2016-03-02 11:17:01 -05:00
Yury Selivanov
06495ffe93
Merge 3.5 (issue #26347 )
2016-03-02 11:08:05 -05:00
Yury Selivanov
f9e1f2bda9
inspect: Fix BoundArguments.apply_defaults to handle empty arguments
...
Patch by Frederick Wagner (issue #26347 )
2016-03-02 11:07:47 -05:00
Yury Selivanov
a8ac8e336b
Merge 3.5 (issue #26221 )
2016-03-02 11:03:53 -05:00
Yury Selivanov
1bd030788d
asyncio: Prevent StopIteration from being thrown into a Future
...
Patch by Chris Angelico (issue #26221 )
2016-03-02 11:03:28 -05:00
Yury Selivanov
578bc5b80b
Merge 3.5 (issue #25647 )
2016-03-02 10:49:36 -05:00
Yury Selivanov
dce63234c5
asyncio: Fix @coroutine to recognize CoroWrapper (issue #25647 )
...
Patch by Vladimir Rutsky.
2016-03-02 10:49:16 -05:00
Yury Selivanov
3ebaea005d
Sync selectors.py with upstream asyncio
2016-03-02 10:43:45 -05:00
Yury Selivanov
45c84cc0ca
Merge 3.5
2016-03-02 10:41:51 -05:00
Yury Selivanov
0c6a34409e
asyncio, selectors: Update to the upstream version
2016-03-02 10:37:59 -05:00
Yury Selivanov
aed6f6c028
Merge 3.5
2016-03-02 10:34:05 -05:00
Yury Selivanov
049205f646
Merge 3.4
2016-03-02 10:33:47 -05:00
Yury Selivanov
90faa09152
asyncio: Update 3.4 asyncio/test_tasks to upstream version
2016-03-02 10:33:22 -05:00
Raymond Hettinger
6f86a3308a
Factor-out common subexpression.
2016-03-02 00:30:58 -08:00
Raymond Hettinger
589106b206
Put block length computations in a more logical order.
2016-03-02 00:06:21 -08:00
Victor Stinner
2ad474ba5e
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.
2016-03-01 23:34:47 +01:00
Victor Stinner
f2192855dd
Merge 3.5
2016-03-01 22:07:53 +01:00
Victor Stinner
337986740f
Issue #26464 : Fix unicode_fast_translate() again
...
Initialize i variable if the string is non-ASCII.
2016-03-01 21:59:58 +01:00
Victor Stinner
3d9d77a3dc
Merge 3.5
2016-03-01 21:30:50 +01:00
Victor Stinner
6c9aa8f2bf
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.
2016-03-01 21:30:30 +01:00
Serhiy Storchaka
42e49ac0da
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.
2016-03-01 10:26:10 +02:00
Serhiy Storchaka
bb0dbd583b
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.
2016-03-01 10:25:45 +02:00
Terry Jan Reedy
8131f14de9
Merge with 3.5
2016-03-01 01:19:02 -05:00
Terry Jan Reedy
5f582bdec8
Whitespace
2016-03-01 01:18:47 -05:00
Terry Jan Reedy
54f99500dd
Merge with 3.5
2016-03-01 01:13:21 -05:00
Terry Jan Reedy
7811a9cf3e
Document maintenance of idlelib/help.html in idlelib.
2016-03-01 01:13:07 -05:00
Terry Jan Reedy
13d09afff1
Merge with 3.5
2016-03-01 00:30:20 -05:00
Terry Jan Reedy
f8cd02dcda
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.
2016-03-01 00:29:57 -05:00
Martin Panter
93088d1b03
Issue #26385 : Merge NamedTemporaryFile fix from 3.5
2016-02-29 11:25:09 +00:00