Victor K
4d07189788
bpo-31556: asyncio.wait_for can cancel futures faster with timeout <= 0 ( #3703 )
2017-10-05 12:04:39 -04:00
Victor Stinner
11045c9d8a
bpo-31178: Mock os.waitpid() in test_subprocess ( #3896 )
...
Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
2017-10-05 06:32:53 -07:00
INADA Naoki
c1c47c166b
bpo-31671: re: Convert RegexFlag to int before compile (GH-3862)
...
sre_compile does bit test (e.g. `flags & SRE_FLAG_IGNORECASE`) in loop.
`IntFlag.__and__` and `IntFlag.__new__` made it slower.
So this commit convert it to normal int before passing flags to `sre_compile()`.
2017-10-05 17:19:26 +09:00
Jakub Stasiak
af810b35b4
closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression ( #3771 )
2017-10-05 00:10:09 -07:00
Benjamin Peterson
a8ed11742b
remove tabs from getcompiler.c ( #3892 )
2017-10-05 00:09:01 -07:00
pdox
e14679c784
closes bpo-31596: Add an interface for pthread_getcpuclockid(3) ( #3756 )
2017-10-05 00:01:56 -07:00
Terry Jan Reedy
55fd06605b
Add self and idlelib to CODEOWNERS file. ( #3889 )
...
Followed format of other entries.
2017-10-04 22:15:11 -04:00
Serhiy Storchaka
300dd552b1
bpo-30872: Update the curses docs to Python 3. ( #2620 )
2017-10-04 22:44:13 +03:00
Serhiy Storchaka
db12ef7e8a
Refactor multiplication and division of timedelta and float. ( #3656 )
...
Implementations of these operations are virtually identical.
2017-10-04 20:30:09 +03:00
Serhiy Storchaka
c02a1f4ad8
bpo-31667: Fix gettext related links. ( #3860 )
...
* Fix incorrect links.
* Remove redundant links.
* Add signatures and index entries for gettext related
functions in the locale module.
2017-10-04 20:28:20 +03:00
Serhiy Storchaka
77732be801
bpo-30404: The -u option now makes the stdout and stderr streams totally unbuffered. ( #1667 )
2017-10-04 20:25:40 +03:00
Serhiy Storchaka
0b5e61ddca
bpo-30397: Add re.Pattern and re.Match. ( #1646 )
2017-10-04 20:09:49 +03:00
Victor Stinner
8d5a3aad2f
bpo-31683: Py_FatalError() now supports long error messages ( #3878 )
...
On Windows, Py_FatalError() now limits the size to 256 bytes of the
buffer used to call OutputDebugStringW(). Previously, the size
depended on the length of the error message.
2017-10-04 09:50:12 -07:00
INADA Naoki
bf477a99e0
bpo-31677: email: Remove re.IGNORECASE flag (GH-3868)
...
While there is not real bug in this case, using re.IGNORECASE without re.ASCII
leads unexpected behavior.
Instead of adding re.ASCII, this commit removes re.IGNORECASE flag because
it's easier and simpler.
This commit removes dead copy of the pattern in email.util module too.
While the pattern is same, it is compiled separately because it had different flags.
2017-10-04 12:47:38 +09:00
Ned Deily
e2d0dd2cf9
Remove retired and security branches from active docs ( #3879 )
2017-10-03 22:56:19 -04:00
Serhiy Storchaka
27c623c845
bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() ( #3866 )
...
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
2017-10-03 22:39:55 +03:00
Serhiy Storchaka
929b40a601
bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). ( #3864 )
2017-10-03 21:37:22 +03:00
diana
543386b7f0
bpo-31657: Add test coverage for the __debug__ case (GH-3450)
...
Update the compile tests for optimization levels to also check that
__debug__ blocks are included or excluded based on the optimization
level.
Patch by Diana Clarke.
2017-10-03 09:46:56 -07:00
Serhiy Storchaka
85c0b8941f
bpo-31619: Fixed a ValueError when convert a string with large number of underscores ( #3827 )
...
to integer with binary base.
2017-10-03 14:13:44 +03:00
INADA Naoki
1a87de7fcf
bpo-31415: Add `-X importtime` option (GH-3490)
...
It shows show import time of each module.
It's useful for optimizing startup time.
Typical usage: python -X importtime -c 'import requests'
2017-10-03 19:46:34 +09:00
Thomas Moreau
e8c368df22
bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor ( #3682 )
2017-10-03 11:53:17 +02:00
Anselm Kruis
efb560eee2
bpo-31662: Fix typos in uploadrelease.bat script
2017-10-02 08:53:55 -07:00
Victor Stinner
e6cfdefa0c
bpo-31510: Fix multiprocessing test_many_processes() on macOS ( #3857 )
...
On macOS, a process can exit with -SIGKILL if it is killed "early"
with SIGTERM.
2017-10-02 08:27:34 -07:00
Victor Stinner
4337a0d995
bpo-11063: Fix _uuid module on macOS ( #3855 )
...
On macOS, use uuid_generate_time() instead of
uuid_generate_time_safe() of libuuid, since uuid_generate_time_safe()
is not available.
2017-10-02 07:57:59 -07:00
Antoine Pitrou
1023dbbcb7
bpo-31516: current_thread() should not return a dummy thread at shutdown ( #3673 )
...
bpo-31516: current_thread() should not return a dummy thread at shutdown
2017-10-02 16:42:15 +02:00
Cornelius Diekmann
e6f62f69f0
bpo-31158: Fix nondeterministic read in test_pty ( #3808 )
...
* bpo-31158: Fix nondeterministic read in test_pty
* Reuse existing readline implementation from io.
Thx to @pitrou
* Updated comment
Ideally, this commit is fixuped into the previous commit. Since there is
already a comment on github, I won't rebase.
2017-10-02 02:39:55 -07:00
INADA Naoki
b75a228af8
bpo-31659: Use simple slicing to format PEM cert (GH-3849)
...
DER_cert_to_PEM_cert() used textwrap.fill() to format PEM.
But it's library to wrap lines on word boundary, while PEM is
base64 encoded string.
Additionally, importing textwrap is little slow.
2017-10-02 16:33:42 +09:00
Benjamin Peterson
edc05c5d88
remove comment about long-gone SGI modules ( #3850 )
2017-10-01 23:37:57 -07:00
Terry Jan Reedy
5961e7c156
IDLE: make filetypes a tuple constant. ( #3847 )
...
Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call.
2017-10-01 19:01:27 -04:00
scoder
2102c78903
bpo-31336: Speed up type creation. ( #3279 )
...
Speed up class creation by 10-20% by reducing the overhead in the
necessary special method lookups.
2017-10-01 11:37:47 +03:00
Terry Jan Reedy
d6bb65f378
bpo-31460: Simplify the API of IDLE's Module Browser. ( #3842 )
...
Passing a widget instead of an flist with a root widget opens the option of
creating a browser frame that is only part of a window. Passing a full file
name instead of pieces assumed to come from a .py file opens the possibility
of browsing python files that do not end in .py.
2017-09-30 19:54:28 -04:00
Terry Jan Reedy
bfebfd81de
bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. ( #3839 )
2017-09-30 17:37:53 -04:00
Oren Milman
7dc46d8cf5
bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). ( #3767 )
2017-09-30 20:16:24 +03:00
Serhiy Storchaka
f4ea642cb6
bpo-31627: Make test_mailbox be lenient to empty hostname. ( #3821 )
2017-09-30 17:10:57 +03:00
scoder
101a5e84ac
bpo-31648: Improve ElementPath ( #3835 )
...
* Allow whitespace inside of ElementPath predicates.
* Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
2017-09-30 16:35:21 +03:00
INADA Naoki
9811e80fd0
bpo-31581: Reduce the number of imports for functools (GH-3757)
2017-09-30 16:13:02 +09:00
James Sexton
b24cd055ec
bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)
...
netrc file format doesn't support quotes and escapes.
See https://linux.die.net/man/5/netrc
2017-09-30 16:10:31 +09:00
Christian Heimes
3d2b407da0
bpo-31574: importlib dtrace ( #3749 )
...
Importlib was instrumented with two dtrace probes to profile import timing.
Signed-off-by: Christian Heimes <christian@python.org>
2017-09-29 15:53:19 -07:00
Łukasz Langa
574562c5dd
bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` ( #3830 )
...
This was possible before. GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now. This commit addresses this
problem.
2017-09-29 14:33:34 -07:00
Oren Milman
01c6a8859e
bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad zlib.decompress() (GH-3784)
...
While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.
Thanks to Oren Milman for the patch.
2017-09-29 11:34:31 -07:00
Brett Cannon
66033733aa
Tweak formatting of PR message template ( #3828 )
2017-09-29 11:16:38 -07:00
Oren Milman
8b4ff53c44
bpo-31285: Remove splitlines identifier from Python/_warnings.c ( #3803 )
...
(forgot to remove it in #3219 )
2017-09-29 21:16:02 +03:00
Zhiming Wang
d87b105ca7
bpo-31638: Add compression support to zipapp (GH-3819)
...
Add optional argument `compressed` to `zipapp.create_archive`, and add
option `--compress` to the command line interface of `zipapp`.
2017-09-29 18:31:52 +01:00
Benjamin Peterson
6fb0e4a6d0
explicitly list objects for the ar command ( #3824 )
...
$^ is not portable.
closes bpo-31625
2017-09-29 09:26:48 -07:00
Benjamin Peterson
d15108a478
stop using ranlib (closes bpo-31625) ( #3815 )
...
Instead, simply pass 's' to ar.
2017-09-29 08:42:41 -07:00
Sorin Sbarnea
90f1d98959
bpo-25351: avoid activate failure on strict shells (GH-3804)
2017-09-29 12:48:11 +01:00
Benjamin Peterson
288d1daada
remove support for BSD/OS (closes bpo-31624) ( #3812 )
2017-09-28 22:44:27 -07:00
Antoine Pitrou
a106aec2ed
bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid ( #3796 )
...
bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid.
2017-09-28 23:03:06 +02:00
kms70847
8d59aca4a9
Fix typo in Simple Statements documentation (GH-3809)
...
Replace "restriction" with "restrictions".
2017-09-28 12:54:48 -07:00
Oren Milman
d780b2d588
bpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__() method. ( #3596 )
2017-09-28 10:50:01 +03:00