summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Conceptually, roots is a set. Also searching it as a set is a tiny bit ↵Raymond Hettinger2017-09-051-1/+1
| | | | faster (#3338)
* bpo-31343: Include sys/sysmacros.h (#3318)Christian Heimes2017-09-056-18/+84
| | | | | | Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray plans to remove the functions from sys/types.h. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-30102: Call OPENSSL_add_all_algorithms_noconf (#3112)Christian Heimes2017-09-053-2/+13
| | | | | | | | The ssl and hashlib modules now call OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The function detects CPU features and enables optimizations on some CPU architectures such as POWER8. Patch is based on research from Gustavo Serra Scalet. Signed-off-by: Christian Heimes <christian@python.org>
* Prevent a few make suspicious warnings. (#3341)Ned Deily2017-09-051-0/+2
|
* Include additional changes to support blurbified NEWS (#3340)Ned Deily2017-09-053-3/+18
|
* Simplify NEWS entry to prevent suspicious warnings. (#3339)Ned Deily2017-09-051-8/+1
|
* bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not ↵Benjamin Peterson2017-09-052-3/+4
| | | | | be null (#3329) Passing NULL as the second argument to to memcpy is undefined behavior even if the size is 0.
* Revert "bpo-17852: Maintain a list of BufferedWriter objects. Flush them on ↵Neil Schemenauer2017-09-055-75/+1
| | | | | exit. (#1908)" (#3337) This reverts commit e38d12ed34870c140016bef1e0ff10c8c3d3f213.
* bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. ↵Neil Schemenauer2017-09-055-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#1908) * Maintain a list of BufferedWriter objects. Flush them on exit. In Python 3, the buffer and the underlying file object are separate and so the order in which objects are finalized matters. This is unlike Python 2 where the file and buffer were a single object and finalization was done for both at the same time. In Python 3, if the file is finalized and closed before the buffer then the data in the buffer is lost. This change adds a doubly linked list of open file buffers. An atexit hook ensures they are flushed before proceeding with interpreter shutdown. This is addition does not remove the need to properly close files as there are other reasons why buffered data could get lost during finalization. Initial patch by Armin Rigo. * Use weakref.WeakSet instead of WeakKeyDictionary. * Simplify buffered double-linked list types. * In _flush_all_writers(), suppress errors from flush(). * Remove NEWS entry, use blurb.
* Fix terminology in comment and add more design rationale. (#3335)Raymond Hettinger2017-09-051-3/+10
| | | | | | * Fix terminology in comment and add more design rationale. * Fix extra space
* Add comment to explain the implications of not sorting keywords (#3331)Raymond Hettinger2017-09-051-0/+4
| | | In Python 3.6, sorted() was removed from _make_key() for the lru_cache and instead rely on guaranteed keyword argument order preservation. This makes keyword argument handling faster but it also causes multiple callers with a different keyword argument order to be cached as separate items. Depending on your point of view, this is either a performance regression (increased number of cache misses) or a performance enhancement (faster computation of keys).
* bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315)Victor Stinner2017-09-0420-57/+570
| | | | | | | | | * bpo-31170: Update libexpat from 2.2.3 to 2.2.4 Fix copying of partial characters for UTF-8 input (libexpat bug 115): https://github.com/libexpat/libexpat/issues/115 * Add NEWS entry.
* bpo-28411: Remove "modules" field from Py_InterpreterState. (#1638)Eric Snow2017-09-0418-111/+261
| | | sys.modules is the one true source.
* random_triangular: sqrt() is more accurate than **0.5 (#3317)Raymond Hettinger2017-09-041-1/+1
|
* Travis: use ccache (#3307)Christian Heimes2017-09-041-2/+4
|
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-0416-115/+36
| | | See PEP 11.
* Code clean-up. Remove unnecessary pre-increment before the loop starts. (#3312)Raymond Hettinger2017-09-041-17/+10
|
* Regen Moduls/clinic/_ssl.c.h (GH-3320)Zachary Ware2017-09-041-3/+3
| | | Broken in GH-2079
* bpo-30502: Fix handling of long oids in ssl. (#2909)Serhiy Storchaka2017-09-042-43/+48
|
* Cache externals, depending on changes to PCbuild (#3308)Zachary Ware2017-09-041-0/+2
|
* bpo-30622: Change NPN detection: (#2079)Melvyn Sopacua2017-09-042-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change NPN detection: Version breakdown, support disabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will be defined -> True/False Version breakdown support enabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True * Refine NPN guard: - If NPN is disabled, but ALPN is available we need our callback - Make clinic's ssl behave the same way This created a working ssl module for me, with NPN disabled and ALPN enabled for OpenSSL 1.1.0f. Concerns to address: The initial commit for NPN support into OpenSSL [1], had the OPENSSL_NPN_* variables defined inside the OPENSSL_NO_NEXTPROTONEG guard. The question is if that ever made it into a release. This would need an ugly hack, something like: #if defined(OPENSSL_NO_NEXTPROTONEG) && \ !defined(OPENSSL_NPN_NEGOTIATED) # define OPENSSL_NPN_UNSUPPORTED 0 # define OPENSSL_NPN_NEGOTIATED 1 # define OPENSSL_NPN_NO_OVERLAP 2 #endif [1] https://github.com/openssl/openssl/commit/68b33cc5c7
* What's New for bpo-1198569 (#3303)Barry Warsaw2017-09-041-0/+7
|
* Fixes doc/make.bat to properly handle quoted paths. (#3302)Steve Dower2017-09-041-8/+8
|
* remove configure.ac support for SGI_ABI (#3294)Benjamin Peterson2017-09-042-38/+0
|
* remote note about IRIX in aifc (#3299)Benjamin Peterson2017-09-041-6/+0
| | | This comment hasn't been true since Python 3.0.
* bpo-1198569: Allow string.Template braced pattern to be different (#3288)Barry Warsaw2017-09-044-4/+45
| | | | | | | | * bpo-1198569: Allow the braced pattern to be different ``string.Template`` subclasses can optionally define ``braceidpattern`` if they want to specify different placeholder patterns inside and outside the braces. If None (the default) it falls back to ``idpattern``.
* Blurbify master branch. (#3298)larryhastings2017-09-04503-9808/+25702
| | | Blurbify master branch.
* bpo-25674: remove sha256.tbs-internet.com ssl test (#3297)Christian Heimes2017-09-043-156/+1
| | | Signed-off-by: Christian Heimes <christian@python.org>
* Clarify nature of parse_args 'args' argument. (#3292)R. David Murray2017-09-041-3/+15
| | | | Patch by Paul.j3. Includes an unrelated but useful addition to the optparse porting section.
* Add references to modules I am responsible for (#3291)Raymond Hettinger2017-09-041-0/+9
|
* Use a team to maintain the email related packages. (#3290)Barry Warsaw2017-09-041-5/+5
|
* Improve clarity (and small speed-up) by using tuple unpacking (#3289)Raymond Hettinger2017-09-041-8/+8
|
* remove check for bug last seem in Solaris 9 (#3285)Benjamin Peterson2017-09-042-54/+0
|
* Change code owners for hashlib and ssl to the crypto team (#3284)Alex Gaynor2017-09-041-3/+6
| | | | | | * Change code owners for hashlib and ssl to the crypto team * Include the core CSPRNG for the crypto-team
* bpo-31281: Fix pathlib.Path incompatibility in fileinput (gh-3208)Zhiming Wang2017-09-043-1/+16
| | | Fix fileinput with inplace=True to accept pathlib.Path objects.
* remove autoconf check for select() (#3283)Benjamin Peterson2017-09-043-5/+2
| | | We never actually check HAVE_SELECT.
* remove configure check for 'volatile' (#3281)Benjamin Peterson2017-09-043-37/+3
| | | This is a required feature is C99, which we require.
* Add missing _sha3 module to Setup.dist (#2395)Segev Finer2017-09-041-0/+1
|
* bpo-12383: Also ignore __PYVENV_LAUNCHER__ (#3278)Ned Deily2017-09-041-0/+1
| | | Used in macOS framework builds.
* bpo-9146: add the missing NEWS entry. (#3275)Gregory P. Smith2017-09-031-0/+3
|
* Fix a c.f.as_completed() refleak previously introduced in bpo-27144 (#3270)Antoine Pitrou2017-09-032-8/+20
|
* bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076)Serhiy Storchaka2017-09-034-219/+248
|
* remove a redundant lower in urllib.parse.urlsplit (#3008)Oren Milman2017-09-031-2/+1
|
* bpo-31323: Fix reference leak in test_ssl (#3263)Victor Stinner2017-09-011-2/+6
| | | | Store exceptions as string rather than object to prevent reference cycles which cause leaking dangling threads.
* bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)Victor Stinner2017-09-011-2/+2
| | | | | | | Call doCleanups() to close the loop after calling executor.shutdown(wait=True): see TestCase.set_event_loop() of asyncio.test_utils. Replace also gc.collect() with support.gc_collect().
* bpo-31326: ProcessPoolExecutor waits for the call queue thread (#3265)Victor Stinner2017-09-012-1/+8
| | | | | | | | | | * bpo-31326: ProcessPoolExecutor waits for the call queue thread concurrent.futures.ProcessPoolExecutor.shutdown() now explicitly closes the call queue. Moreover, shutdown(wait=True) now also join the call queue thread, to prevent leaking a dangling thread. * Fix for shutdown() being called twice.
* bpo-27144: concurrent.futures as_complete and map iterators do not keep ↵Grzegorz Grzywacz2017-09-014-10/+91
| | | | | | | | | | reference to returned object (#1560) * bpo-27144: concurrent.futures as_complie and map iterators do not keep reference to returned object * Some nits. Improve wordings in docstrings and comments, and avoid relying on sys.getrefcount() in tests.
* bpo-31250, test_asyncio: fix dangling threads (#3252)Victor Stinner2017-09-013-2/+10
| | | | | | | * Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close().
* bpo-31217: Fix regrtest -R for small integer (#3260)Victor Stinner2017-09-011-3/+11
| | | | | | | | Use a pool of integer objects toprevent false alarm when checking for memory block leaks. Fill the pool with values in -1000..1000 which are the most common (reference, memory block, file descriptor) differences. Co-Authored-By: Antoine Pitrou <pitrou@free.fr>
* bpo-30096: Use ABC in abc reference examples (#1220)Eric Appelt2017-08-301-24/+39
| | | Use base class rather than metaclass in examples.