- 05 Eyl, 2017 12 kayıt (commit)
-
-
Gregory P. Smith yazdı
-
Raymond Hettinger yazdı
-
Christian Heimes yazdı
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>
-
Christian Heimes yazdı
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>
-
Ned Deily yazdı
-
Ned Deily yazdı
-
Ned Deily yazdı
-
Benjamin Peterson yazdı
Passing NULL as the second argument to to memcpy is undefined behavior even if the size is 0.
-
Neil Schemenauer yazdı
This reverts commit e38d12ed.
-
Neil Schemenauer yazdı
* 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.
-
Raymond Hettinger yazdı
* Fix terminology in comment and add more design rationale. * Fix extra space
-
Raymond Hettinger yazdı
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).
-
- 04 Eyl, 2017 28 kayıt (commit)
-
-
Victor Stinner yazdı
* 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.
-
Eric Snow yazdı
sys.modules is the one true source.
-
Raymond Hettinger yazdı
-
Christian Heimes yazdı
-
Benjamin Peterson yazdı
See PEP 11.
-
Raymond Hettinger yazdı
-
Zachary Ware yazdı
Broken in GH-2079
-
Serhiy Storchaka yazdı
-
Zachary Ware yazdı
-
Melvyn Sopacua yazdı
* 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
-
Barry Warsaw yazdı
-
Steve Dower yazdı
-
Benjamin Peterson yazdı
-
Benjamin Peterson yazdı
This comment hasn't been true since Python 3.0.
-
Barry Warsaw yazdı
* 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``.
-
larryhastings yazdı
Blurbify master branch.
-
Christian Heimes yazdı
Signed-off-by: Christian Heimes <christian@python.org>
-
R. David Murray yazdı
Patch by Paul.j3. Includes an unrelated but useful addition to the optparse porting section.
-
Raymond Hettinger yazdı
-
Barry Warsaw yazdı
-
Raymond Hettinger yazdı
-
Benjamin Peterson yazdı
-
Alex Gaynor yazdı
* Change code owners for hashlib and ssl to the crypto team * Include the core CSPRNG for the crypto-team
-
Zhiming Wang yazdı
Fix fileinput with inplace=True to accept pathlib.Path objects.
-
Benjamin Peterson yazdı
We never actually check HAVE_SELECT.
-
Benjamin Peterson yazdı
This is a required feature is C99, which we require.
-
Segev Finer yazdı
-
Ned Deily yazdı
Used in macOS framework builds.
-