summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-36549: str.capitalize now titlecases the first character instead of ↵Kingsley M2019-04-125-5/+10
| | | | uppercasing it (GH-12804)
* bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). ↵Eric Snow2019-04-1211-108/+151
| | | | | (gh-12360) This is effectively an un-revert of #11617 and #12024 (reverted in #12159). Portions of those were merged in other PRs (with lower risk) and this represents the remainder. Note that I found 3 different bugs in the original PRs and have fixed them here.
* bpo-18748: io.IOBase destructor now logs close() errors in dev mode (GH-12786)Victor Stinner2019-04-124-10/+46
| | | | | In development mode (-X dev) and in debug build, the io.IOBase destructor now logs close() exceptions. These exceptions are silent by default in release mode.
* bpo-36588: On AIX, remove major version from sys.platform (GH-12787)Michael Felt2019-04-125-2/+22
| | | | | | On AIX, sys.platform doesn't contain the major version anymore. Always return 'aix', instead of 'aix3' .. 'aix7'. Since older Python versions include the version number, it is recommended to always use sys.platform.startswith('aix').
* bpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797)Victor Stinner2019-04-122-2/+9
| | | | | | | | | | | | | | | | Fix test_sys.test_getallocatedblocks() when tracemalloc is enabled. If the name of Python memory allocators cannot get read, consider that pymalloc is disabled. Fix the following error: ./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest) ------------------------------------------------------------ Traceback (most recent call last): File "Lib/test/test_sys.py", line 770, in test_getallocatedblocks alloc_name = _testcapi.pymem_getallocatorsname() RuntimeError: cannot get allocators name
* bpo-20180: Use argument clinic for dict.pop() and dict.popitem() (GH-12792)Inada Naoki2019-04-123-35/+101
|
* bpo-20582: add link for manpage for flags on getnameinfo() (GH-11977)Emmanuel Arias2019-04-111-0/+2
|
* bpo-36605: make tags: parse Modules/_io directory (GH-12789)Victor Stinner2019-04-113-16/+6
| | | | "make tags" and "make TAGS" now also parse Modules/_io/*.c and Modules/_io/*.h.
* bpo-36389: Change PyMem_SetupDebugHooks() constants (GH-12782)Victor Stinner2019-04-116-24/+37
| | | | | Modify CLEANBYTE, DEADDYTE and FORBIDDENBYTE constants: use 0xCD, 0xDD and 0xFD, rather than 0xCB, 0xBB and 0xFB, to use the same byte patterns than Windows CRT debug malloc() and free().
* bpo-36575: lsprof: Use _PyTime_GetPerfCounter() (GH-8378)Inada Naoki2019-04-112-86/+40
|
* bpo-36597: fix weakref example code (GH-12779)Inada Naoki2019-04-111-5/+8
| | | | | Commit 57b1a2862 fixed doctest, but example code is not match with document. Just skip doctest for the block.
* bpo-36389: _PyObject_IsFreed() now also detects uninitialized memory (GH-12770)Victor Stinner2019-04-116-27/+113
| | | | | | | | | Replace _PyMem_IsFreed() function with _PyMem_IsPtrFreed() inline function. The function is now way more efficient, it became a simple comparison on integers, rather than a short loop. It detects also uninitialized bytes and "forbidden bytes" filled by debug hooks on memory allocators. Add unit tests on _PyObject_IsFreed().
* bpo-36597: fix random doctest failure (GH-12776)Inada Naoki2019-04-112-17/+15
|
* bpo-36597: Disable Travis CI doctest job (GH-12775)Victor Stinner2019-04-111-14/+16
| | | | Disable the job to unblock the CI until the issue is properly understood.
* bpo-36416: Correct bytes.rpartition documentation (GH-12543)pewscorner2019-04-111-2/+2
|
* better __init__.py explanation in tutorial (#12763)Inada Naoki2019-04-111-3/+3
| | | | | | | | * better __init__.py explanation in tutorial * Update Doc/tutorial/modules.rst Co-Authored-By: methane <songofacandy@gmail.com>
* Doc: fix typo in IncrementalDecoder.setstate (GH-12724)Christopher Thorne2019-04-111-1/+1
|
* bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)Victor Stinner2019-04-111-0/+3
| | | | Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler().
* fix typo in doc (#12686)Caleb Marchent2019-04-101-2/+2
|
* bpo-36559: random module: optimize sha512 import (GH-12742)Christian Heimes2019-04-102-1/+10
| | | | | | The random module now prefers the lean internal _sha512 module over hashlib for seed(version=2) to optimize import time. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-34144: Fix of venv acvtivate.bat for win 10 (GH-8321)Lorenz Mende2019-04-102-1/+3
| | | | | | | | | The script needs to be updated to support win 10/ 1803 chcp.com command (output has trailing dot) https://bugs.python.org/issue34144
* bpo-14826: document that URLopener quotes fullurl. (GH-12758)Gregory P. Smith2019-04-101-0/+1
|
* bpo-12910: update and correct quote docstring (#2568)Jörn Hees2019-04-091-13/+20
| | | | | | Fixes some mistakes and misleadings in the quote function docstring: - reserved chars are never actually used by quote code, unreserved chars are - reserved chars were wrong and incomplete - mentioned that use-case is not minimal quoting wrt. RFC, but cautious quoting
* Fix typos in compile.c comments (GH-12752)Simeon2019-04-091-2/+2
|
* bpo-31512: Add non-elevated symlink support for Windows (GH-3652)Vidar Tonaas Fauske2019-04-094-79/+53
|
* bpo-34373: Fix time.mktime() on AIX (GH-12726)Victor Stinner2019-04-093-39/+45
| | | | | | | | | | | | | | | Fix time.mktime() error handling on AIX for year before 1970. Other changes: * mktime(): rename variable 'buf' to 'tm'. * _PyTime_localtime(): * Use "localtime" rather than "ctime" in the error message (specific to AIX). * Always initialize errno to 0 just in case if localtime_r() doesn't set errno on error. * On AIX, avoid abs() which is limited to int type. * EINVAL constant is now always available.
* bpo-36577: setup.py reports missing OpenSSL again (GH-12746)Christian Heimes2019-04-092-0/+3
| | | | | | | | | | | [bpo-36146](https://bugs.python.org/issue36146) introduced another regression. In case of missing OpenSSL libraries or headers, setup.py no longer reported _hashlib and _ssl to be missing. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue36577
* bpo-36560: regrtest: don't collect the GC twice (GH-12747)Victor Stinner2019-04-091-2/+4
| | | | | | dash_R() function of libregrtest doesn't call support.gc_collect() directly anymore: it's already called by dash_R_cleanup(). Call dash_R_cleanup() before starting the loop.
* bpo-36508: python-config don't export LINKFORSHARED (GH-12661)Victor Stinner2019-04-094-8/+6
| | | | | python-config --ldflags no longer includes flags of the LINKFORSHARED variable. The LINKFORSHARED variable must only be used to build executables.
* bpo-36544 : Fix regression introduced in bpo-36146 (GH-12708)xdegaye2019-04-092-0/+3
| | | https://bugs.python.org/issue36544
* bpo-34139: Remove unix datagram socket from FS before binding (GH-8323)Quentin Dawans2019-04-093-0/+29
| | | https://bugs.python.org/issue34139
* bpo-36560: Fix reference leak hunting in regrtest (GH-12744)Victor Stinner2019-04-094-33/+46
| | | | | | | | | | | | | | | | | | Fix reference leak hunting in regrtest: compute also deltas (of reference count, allocated memory blocks, file descriptor count) during warmup, to ensure that everything is initialized before starting to hunt reference leaks. Other changes: * Replace gc.collect() with support.gc_collect() * Move calls to read memory statistics from dash_R_cleanup() to dash_R() * Pass regrtest 'ns' to dash_R() * dash_R() is now more quiet with --quiet option (don't display progress). * Precompute the full range for "for it in range(repcount):" to ensure that the iteration doesn't allocate anything new. * dash_R() now is responsible to call warm_caches().
* bpo-34060: Report system load when running test suite for Windows (GH-8357)Ammar Askar2019-04-093-2/+117
| | | | | | | | | | | | | | | While Windows exposes the system processor queue length, the raw value used for load calculations on Unix systems, it does not provide an API to access the averaged value. Hence to calculate the load we must track and average it ourselves. We can't use multiprocessing or a thread to read it in the background while the tests run since using those would conflict with test_multiprocessing and test_xxsubprocess. Thus, we use Window's asynchronous IO API to run the tracker in the background with it sampling at the correct rate. When we wish to access the load we check to see if there's new data on the stream, if there is, we update our load values.
* bpo-33456: site module documentation - fix wrong default for key in ↵Lukas Waymann2019-04-091-3/+3
| | | | pyvenv.cfg (GH-6755)
* bpo-33461: emit DeprecationWarning when json.loads(encoding=...) is used ↵Matthias Bussonnier2019-04-094-4/+22
| | | | (GH-6762)
* fix code styling (GH-12737)Inada Naoki2019-04-091-1/+1
|
* closes bpo-35848: Move all documentation regarding the readinto out of ↵Steve Palmer2019-04-082-14/+10
| | | | | | | IOBase. (GH-11893) Move all documentation regarding the readinto method into either io.RawIOBase or io.BufferedIOBase. Corresponding changes to documentation in the _pyio.py module.
* BPO-17561: set create_server backlog default to None (GH-12735)Giampaolo Rodola2019-04-093-3/+7
| | | | | | | | | It turns out doing socket.listen(0) does not equal to "choose a reasonable default". It actually means "set backlog to 0". As such set backlog=None as the default for socket.create_server. Fixes the following BB failures: https://github.com/python/cpython/pull/11784#issuecomment-481036369 Ref. BPO-1756, GH-11784.
* bpo-36565: Fix libregrtest for Python without builtin _abc (GH-12733)Victor Stinner2019-04-092-2/+8
| | | | Fix reference hunting (``python3 -m test -R 3:3``) when Python has no built-in abc module: fix _get_dump() reimplementation of libregrtest.
* bpo-35934: Add socket.create_server() utility function (GH-11784)Giampaolo Rodola2019-04-0917-88/+289
|
* bpo-35416: fix potential resource warnings in distutils (GH-10918)Mickaël Schoentgen2019-04-084-39/+44
|
* Add a What's New entry for bpo-35459. (GH-12706)Serhiy Storchaka2019-04-081-0/+5
|
* Correct "inplace" with "in-place" (GH-10480)Andre Delfino2019-04-082-5/+5
|
* remove duplicate code in biscet (GH-1270)Chillar Anand2019-04-081-16/+2
|
* bpo-36503: remove references to 'aix3' and 'aix4' (GH-12658)Michael Felt2019-04-084-4/+4
|
* bpo-27181: Add statistics.geometric_mean() (GH-12638)Raymond Hettinger2019-04-075-1/+132
|
* bpo-35936: Updates to modulefinder (GH-11787)Brandt Bucher2019-04-076-16/+116
| | | | | | | | | | | | | | | | | | | * Properly handle SyntaxErrors in Python source files. SyntaxErrors in the target module will rise normally, while SyntaxErrors in dependencies will be added to badmodules. This includes a new regression test. * Fix name collision bug. This fixes an issue where a "fromlist" import with the same name as a previously failed import would be incorrectly added to badmodules. This includes a new regression test. * Replace mutable default values. Bound empty lists have been replaced with the "if param is None" idiom. * Replace deprecated imp usage. Constants imported from imp have been moved to private module-level constants, and ModuleFinder.find_module has been refactored to use importlib. Other than an improvement on how frozen builtin imports are reported (as the frozen imports they are, rather than the stdlib modules they *may* have originated from), these changes maintain complete compatibility with past versions... including odd behavior for returning relative (below current directory, but not a C extension) vs. absolute (above current directory, or a C extension) paths. Patch by Brandt Bucher.
* bpo-35726: Add test for QueueHandler with multiple handlers (GH-11659)Xtreak2019-04-071-0/+13
|
* bpo-30661: Improve docs for tarfile pax change and effect on shutil (GH-12635)CAM Gerlach2019-04-073-12/+22
| | | | The shutil archive creation helpers use the default tarfile format, so that API is also switching to use `pax` by default.
* bpo-9883: Update list of unimplemented interfaces in minidom. (GH-12677)Stefan Behnel2019-04-061-14/+0
| | | | Remove names from the "unimplemented interfaces" list in the minidom docs that are actually implemented.