summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add self and idlelib to CODEOWNERS file. (#3889)Terry Jan Reedy2017-10-051-0/+2
| | | Followed format of other entries.
* bpo-30872: Update the curses docs to Python 3. (#2620)Serhiy Storchaka2017-10-043-109/+115
|
* Refactor multiplication and division of timedelta and float. (#3656)Serhiy Storchaka2017-10-041-41/+10
| | | Implementations of these operations are virtually identical.
* bpo-31667: Fix gettext related links. (#3860)Serhiy Storchaka2017-10-042-9/+15
| | | | | | * Fix incorrect links. * Remove redundant links. * Add signatures and index entries for gettext related functions in the locale module.
* bpo-30404: The -u option now makes the stdout and stderr streams totally ↵Serhiy Storchaka2017-10-044-12/+17
| | | | unbuffered. (#1667)
* bpo-30397: Add re.Pattern and re.Match. (#1646)Serhiy Storchaka2017-10-0413-107/+120
|
* bpo-31683: Py_FatalError() now supports long error messages (#3878)Victor Stinner2017-10-041-20/+42
| | | | | 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.
* bpo-31677: email: Remove re.IGNORECASE flag (GH-3868)INADA Naoki2017-10-042-14/+2
| | | | | | | | | 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.
* Remove retired and security branches from active docs (#3879)Ned Deily2017-10-042-4/+0
|
* bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (#3866)Serhiy Storchaka2017-10-033-23/+45
| | | | | when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
* bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (#3864)Serhiy Storchaka2017-10-033-13/+14
|
* bpo-31657: Add test coverage for the __debug__ case (GH-3450)diana2017-10-031-8/+11
| | | | | | 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.
* bpo-31619: Fixed a ValueError when convert a string with large number of ↵Serhiy Storchaka2017-10-033-4/+14
| | | | | underscores (#3827) to integer with binary base.
* bpo-31415: Add `-X importtime` option (GH-3490)INADA Naoki2017-10-033-0/+51
| | | | | | It shows show import time of each module. It's useful for optimizing startup time. Typical usage: python -X importtime -c 'import requests'
* bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor (#3682)Thomas Moreau2017-10-035-40/+170
|
* bpo-31662: Fix typos in uploadrelease.bat scriptAnselm Kruis2017-10-021-3/+3
|
* bpo-31510: Fix multiprocessing test_many_processes() on macOS (#3857)Victor Stinner2017-10-021-1/+6
| | | | On macOS, a process can exit with -SIGKILL if it is killed "early" with SIGTERM.
* bpo-11063: Fix _uuid module on macOS (#3855)Victor Stinner2017-10-022-2/+30
| | | | | On macOS, use uuid_generate_time() instead of uuid_generate_time_safe() of libuuid, since uuid_generate_time_safe() is not available.
* bpo-31516: current_thread() should not return a dummy thread at shutdown (#3673)Antoine Pitrou2017-10-023-2/+31
| | | | bpo-31516: current_thread() should not return a dummy thread at shutdown
* bpo-31158: Fix nondeterministic read in test_pty (#3808)Cornelius Diekmann2017-10-021-2/+19
| | | | | | | | | | | | | * 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.
* bpo-31659: Use simple slicing to format PEM cert (GH-3849)INADA Naoki2017-10-021-4/+4
| | | | | | | 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.
* remove comment about long-gone SGI modules (#3850)Benjamin Peterson2017-10-021-2/+0
|
* IDLE: make filetypes a tuple constant. (#3847)Terry Jan Reedy2017-10-011-2/+2
| | | Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call.
* bpo-31336: Speed up type creation. (#3279)scoder2017-10-012-52/+110
| | | | | Speed up class creation by 10-20% by reducing the overhead in the necessary special method lookups.
* bpo-31460: Simplify the API of IDLE's Module Browser. (#3842)Terry Jan Reedy2017-09-304-47/+42
| | | | | | 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.
* bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (#3839)Terry Jan Reedy2017-09-307-6/+7
|
* bpo-31592: Fix an assertion failure in Python parser in case of a bad ↵Oren Milman2017-09-303-12/+28
| | | | unicodedata.normalize(). (#3767)
* bpo-31627: Make test_mailbox be lenient to empty hostname. (#3821)Serhiy Storchaka2017-09-301-1/+1
|
* bpo-31648: Improve ElementPath (#3835)scoder2017-09-305-7/+68
| | | | | * Allow whitespace inside of ElementPath predicates. * Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
* bpo-31581: Reduce the number of imports for functools (GH-3757)INADA Naoki2017-09-302-88/+92
|
* bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)James Sexton2017-09-303-9/+13
| | | | | netrc file format doesn't support quotes and escapes. See https://linux.die.net/man/5/netrc
* bpo-31574: importlib dtrace (#3749)Christian Heimes2017-09-295-0/+28
| | | | | Importlib was instrumented with two dtrace probes to profile import timing. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` ↵Łukasz Langa2017-09-292-3/+6
| | | | | | | (#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.
* bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a ↵Oren Milman2017-09-293-0/+27
| | | | | | | 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.
* Tweak formatting of PR message template (#3828)Brett Cannon2017-09-291-4/+4
|
* bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)Oren Milman2017-09-291-3/+0
| | | (forgot to remove it in #3219)
* bpo-31638: Add compression support to zipapp (GH-3819)Zhiming Wang2017-09-295-7/+44
| | | | Add optional argument `compressed` to `zipapp.create_archive`, and add option `--compress` to the command line interface of `zipapp`.
* explicitly list objects for the ar command (#3824)Benjamin Peterson2017-09-291-1/+1
| | | | | $^ is not portable. closes bpo-31625
* stop using ranlib (closes bpo-31625) (#3815)Benjamin Peterson2017-09-294-106/+4
| | | Instead, simply pass 's' to ar.
* bpo-25351: avoid activate failure on strict shells (GH-3804)Sorin Sbarnea2017-09-292-13/+14
|
* remove support for BSD/OS (closes bpo-31624) (#3812)Benjamin Peterson2017-09-2910-69/+11
|
* bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid (#3796)Antoine Pitrou2017-09-285-206/+335
| | | | bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid.
* Fix typo in Simple Statements documentation (GH-3809)kms708472017-09-281-1/+1
| | | Replace "restriction" with "restrictions".
* bpo-31478: Fix an assertion failure in random.seed() in case a seed has a ↵Oren Milman2017-09-283-2/+18
| | | | bad __abs__() method. (#3596)
* Trivial readability improvement (#3791)Barry Warsaw2017-09-271-1/+1
|
* bpo-31588: Validate return value of __prepare__() methods (GH-3764)Oren Milman2017-09-273-0/+31
| | | | | | | | | | Class execution requires that __prepare__() methods return a proper execution namespace. Check for that immediately after calling __prepare__(), rather than passing it through to the code execution machinery and potentially triggering SystemError (in debug builds) or a cryptic TypeError (in release builds). Patch by Oren Milman.
* point to the module-level get_ident function rather than the one in _thread ↵Benjamin Peterson2017-09-271-4/+4
| | | | (#3782)
* closes bpo-22140: Prevent double substitution of prefix in python-config.sh ↵Michał Górny2017-09-272-12/+14
| | | | | | | | | | | | | | | | | | | (#3769) Fix the logic in python-config.sh to avoid attempting to substitute prefix in a variable that might have already been subject to substitution. This e.g. happened if @exec_prefix@ was defined as "${prefix}" (which is the default of the configure script) -- in which case the exec_prefix_build variable was initialized with already-subtituted prefix, and then another round of substitution was performed which might have resulted in duplicate prefix. To avoid that, rename the variables so that the variables matching likely configure names (prefix, exec_prefix) retain their original values and a '_real' suffix is used for the real values of prefix. Furthermore, replace the unnecessary prefix and exec_prefix substitutions with direct prefix_real references since the sed always replaced the whole string anyway by design.
* bpo-31586: Use _count_element fast path for real dicts.Oren Milman2017-09-271-1/+3
|
* bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() ↵Serhiy Storchaka2017-09-263-36/+56
| | | | iterators. (#1557)