summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code ↵Serhiy Storchaka2018-01-2522-1428/+1441
| | | | | (GH-5222) Add two new private APIs: _PyObject_LookupAttr() and _PyObject_LookupAttrId()
* bpo-32652: Defer pymain_set_global_config() call (#5303)Victor Stinner2018-01-252-14/+27
| | | | | | In Py_Main(), don't call pymain_set_global_config() early: only call it when the whole configuration has been read. Add an unit test to prevent future regression.
* bpo-29708: Add What's New entries for SOURCE_DATE_EPOCH and py_compile (GH-5306)Brett Cannon2018-01-251-15/+31
|
* bpo-32391: Implement StreamWriter.wait_closed() (#5281)Andrew Svetlov2018-01-244-10/+73
|
* bpo-10381: Add timezone to datetime C API (#5032)Paul Ganssle2018-01-247-11/+329
| | | | | | | | | | | | | | | | | | * Add timezone to datetime C API * Add documentation for timezone C API macros * Add dedicated tests for datetime type check macros * Remove superfluous C API test * Drop support for TimeZoneType in datetime C API * Expose UTC singleton to the datetime C API * Update datetime C-API documentation to include links * Add reference count information for timezone constructors
* bpo-29708: Setting SOURCE_DATE_EPOCH forces hash-based .pyc files (GH-5200)Bernhard M. Wiedemann2018-01-244-1/+22
| | | To support reproducible builds, the setting of of SOURCE_DATE_EPOCH triggers the py_compile module -- and by extension, compileall -- to forcibly compile with hash-based .pyc files. This eliminates the possibility of timestamp-based .pyc files which vary between builds.
* bpo-32248 - Implement `ResourceReader` and `get_resource_reader()` for ↵Barry Warsaw2018-01-245-83/+157
| | | | zipimport (#5248)
* bpo-32636: Fix two bugs in test_asyncio (#5302)Victor Stinner2018-01-242-1/+2
|
* bpo-32636: Fix @asyncio.coroutine debug mode bug exposed by gh-5250 (#5291)Nathaniel J. Smith2018-01-242-1/+19
|
* bpo-32410: Improve sock_sendfile tests (#5294)Andrew Svetlov2018-01-241-16/+19
| | | | | * Rename sock_sendfile test methods * Make sock_sendfile tests more stable
* bpo-32651 Recommend getpass.getuser() (#5301)Barry Warsaw2018-01-242-8/+11
| | | | * bpo-32651 - In the documentation for os.getlogin(), recommend getpass.getuser()
* bpo-32643: Drop support for a few private Task and Future APIs. (#5293)Yury Selivanov2018-01-247-229/+33
| | | | | | | | Specifically, it's not possible to subclass Task/Future classes and override the following methods: * Future._schedule_callbacks * Task._step * Task._wakeup
* bpo-32030: Add _PyCoreConfig.module_search_paths (#4954)Victor Stinner2018-01-243-187/+231
| | | | | | | | | | | _PyCoreConfig_Read() is now responsible to compute sys.path. So sys.path is now computed before calling _Py_InitializeCore(). Changes: * Add module_search_path, module_search_paths, executable, prefix, base_prefix, exec_prefix and base_exec_prefix to _PyCoreConfig. * _PyMainInterpreterConfig_Read() now only converts wchar_t** lists into a Python list, it doesn't compute sys.path anymore.
* bpo-28046: Remove MACHDEPPATH from Modules/Setup.dist (#5289)Victor Stinner2018-01-241-5/+1
| | | | | | Makefile $MACHDEPPATH uses $PLATDIR, but this variable was removed. So remove also $MACHDEPPATH. Remove also $EXTRAMACHDEPPATH.
* bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile (#4056)Pablo Galindo2018-01-243-22/+40
|
* bpo-32360: unittest.util: Use Counter instead of custom count function (GH-4994)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2018-01-241-9/+2
|
* bpo-32436: Don't use native popcount() (also fixes bpo-32641) (#5292)Yury Selivanov2018-01-242-15/+13
|
* bpo-32502: Discard 64-bit (and other invalid) hardware addresses (#5254)Bo Bayles2018-01-243-6/+38
|
* bpo-32436: Fix potential NULL dereference (#5286)Yury Selivanov2018-01-231-0/+4
|
* bpo-32296: Make get_running_loop() another 4-5x faster (#5277)Yury Selivanov2018-01-231-62/+102
|
* bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. ↵stratakis2018-01-235-2/+10
| | | | | | | (#5284) glibc is deprecating libcrypt in favor of libxcrypt, however python assumes that crypt.h will always be included. This change makes the header inclusion explicit when libxcrypt is present on the system.
* bpo-32618: Fix test_mutatingdecodehandler not testing test.mutating (#5269)Xiang Zhang2018-01-231-3/+2
| | | | | * bpo-32618: Fix test_mutatingdecodehandler not testing test.mutating It should test both test.replacing and test.mutating instead of test test.replacing twice.
* bpo-20361: Remove workaround for a now fixed bug (#5283)Victor Stinner2018-01-231-3/+0
| | | | "python3 -bb -Wd" now works as expected: "python3 -bb -Wd -Werror::BytesWarning" is no more needed.
* bpo-32593: Run autoconf (#5282)Victor Stinner2018-01-231-4/+0
| | | | Update configure since configure.ac was modified to drop support for FreeBSD 4.
* bpo-32633: Fix some warnings in test_asyncio.test_tasks (#5280)Nathaniel J. Smith2018-01-231-2/+8
|
* bpo-32436: Remove a redundant assert (#5275)Yury Selivanov2018-01-231-1/+0
|
* Add myself as hamt/context (PEP 567) code owner (#5276)Yury Selivanov2018-01-231-0/+2
|
* bpo-32436: Implement PEP 567 (#5027)Yury Selivanov2018-01-2341-120/+6269
|
* bpo-29240: PyUnicode_DecodeLocale() uses UTF-8 on Android (#5272)Victor Stinner2018-01-222-4/+17
| | | | | | | | PyUnicode_DecodeLocaleAndSize(), PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale() now use always use the UTF-8 encoding on Android, instead of the current locale encoding. On Android API 19, mbstowcs() and wcstombs() are broken and cannot be used.
* bpo-32593: Drop FreeBSD 9 and older support (#5232)Victor Stinner2018-01-2218-108/+23
| | | Drop support of FreeBSD 9 and older.
* bpo-31179: Make dict.copy() up to 5.5 times faster. (#3067)Yury Selivanov2018-01-223-2/+122
|
* bpo-31801: Enum: add _ignore_ as class option (#5237)Ethan Furman2018-01-224-2/+79
| | | | | | | | | | | | | | | | * bpo-31801: Enum: add _ignore_ as class option _ignore_ is a list, or white-space seperated str, of names that will not be candidates for members; these names, and _ignore_ itself, are removed from the final class. * bpo-31801: Enum: add documentation for _ignore_ * bpo-31801: Enum: remove trailing whitespace * bpo-31801: Enum: fix bulleted list format * bpo-31801: add version added for _ignore_
* urllib.request: Remove unused import (GH-5268)INADA Naoki2018-01-221-1/+0
|
* bpo-32591: Fix PyExc_WarnFormat call (follow-up commit) (#5263)Yury Selivanov2018-01-221-5/+4
| | | | | The previous version was correct in terms of behaviour, but checking the return value of PyErr_WarnFormat allows to avoid calling PyErr_Occurred and silences the coverity alarm.
* bpo-32314: Fix asyncio.run() to cancel runinng tasks on shutdown (#5262)Yury Selivanov2018-01-214-15/+122
|
* bpo-32591: Add native coroutine origin tracking (#5250)Nathaniel J. Smith2018-01-2120-100/+485
| | | | | | * Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth * Use coroutine origin information in the unawaited coroutine warning * Stop using set_coroutine_wrapper in asyncio debug mode * In BaseEventLoop.set_debug, enable debugging in the correct thread
* bpo-32503: Avoid creating too small frames in pickles. (#5127)Serhiy Storchaka2018-01-204-51/+62
|
* bpo-32602: Test ECDSA certs (#5247)Christian Heimes2018-01-2021-440/+1049
| | | | | | | | Add test certs and test for ECDSA cert and EC/RSA dual mode. I'm also adding certs for IDNA 2003/2008 tests and simplify some test data handling. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32598: Use autoconf to detect usable OpenSSL (#5242)Christian Heimes2018-01-209-83/+585
| | | | | | | | | | | | | | Add https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html to auto-detect compiler flags, linker flags and libraries to compile OpenSSL extensions. The M4 macro uses pkg-config and falls back to manual detection. Add autoconf magic to detect usable X509_VERIFY_PARAM_set1_host() and related functions. Refactor setup.py to use new config vars to compile _ssl and _hashlib modules. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32226: PEP 560: improve typing module (#4906)Ivan Levkivskyi2018-01-205-1626/+757
| | | | This PR re-designs the internal typing API using the new PEP 560 features. However, there are only few minor changes in the public API.
* bpo-32028: Fix suggestions for indented print statements (GH-4688)Sanyam Khurana2018-01-203-5/+23
| | | | | | | The suggested replacement for print statements previously failed to account for leading whitespace and hence could end up including unwanted text in the proposed call to the print builtin. Patch by Sanyam Khurana.
* bpo-32596: Lazy import concurrent.futures.process and thread (GH-5241)INADA Naoki2018-01-202-2/+37
|
* bpo-25910: Link redirections in docs (#1933)Sanyam Khurana2018-01-2037-63/+61
| | | Fixes some redirection links in docs.
* bpo-32410: Make SendfileNotAvailableError exception public (#5243)Andrew Svetlov2018-01-196-25/+42
|
* bpo-32588: Move _findvs into its own module and add missing _queue module to ↵Steve Dower2018-01-1811-23/+132
| | | | installer (#5227)
* Removed unnecesssary bit inversion which doesn't improve dispersion ↵Raymond Hettinger2018-01-181-1/+1
| | | | statistics (#5235)
* bpo-9566: Fix size_t=>int downcast warnings (#5230)Victor Stinner2018-01-185-14/+14
| | | | * Use wider types (int => Py_ssize_t) to avoid integer overflows. * Fix gc.get_freeze_count(): use Py_ssize_t type rather than int, since gc_list_size() returns a Py_ssize_t.
* bpo-32576: use queue.SimpleQueue in critical places (#5216)Antoine Pitrou2018-01-183-9/+14
| | | | Where a queue may be invoked from a weakref callback, we need to use the reentrant SimpleQueue.
* Fix typo in thread_nt.h code comment (GH-5211)hui shang2018-01-171-1/+1
| | | | The comment for PyThread_allocate_lock says "It has too be implemented ...". There was an extra "o" in ".. to be implemented.."
* Use assertCountEqual instead of assertEqual. (#5223)Gregory P. Smith2018-01-171-3/+3
| | | | This test doesn't care about order, the underlying filesystem APIs do not guarantee directory listings on subsequent calls will be in the same order.