summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-101-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-101-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-092-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-082-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-0817-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.
* bpo-36050: optimize HTTPResponse.read() (GH-12698)Inada Naoki2019-04-062-32/+12
| | | | * No need to chunking for now. * No need to partial read caused by EINTR for now.
* bpo-36527: silence -Wunused-parameter warnings in object.h (GH-12688)Dmitry Marakasov2019-04-061-0/+3
|
* Fix doc for create_subprocess_exec (GH-12598)Dima Tisnek2019-04-051-1/+1
| | | Add missing `program` argument to asyncio.create_subprocess_exec documentation.
* bpo-25451: Add transparency methods to tkinter.PhotoImage. (GH-10406)Zackery Spytz2019-04-054-0/+25
|
* bpo-29202: improve dict iteration (GH-11900)Cheryl Sabella2019-04-051-9/+6
| | | Use fewer iterations instead of iterating over the whole entry table.
* bpo-36301: Fix _PyPreConfig_Read() compiler warning (GH-12695)Victor Stinner2019-04-051-4/+5
| | | Initialize init_utf8_mode earlier to fix a compiler warning.
* bpo-36404: recommend DeprecationWarning over PendingDeprecationWarning ↵Inada Naoki2019-04-052-5/+13
| | | | (GH-12505)
* Tools/importbench: Fix a misplaced stderr= (GH-12690)Anthony Sottile2019-04-051-2/+2
|
* Fix duplicated test case for re. (GH-12662)MakDon2019-04-041-1/+1
|
* bpo-36522: Print all values for headers with multiple values. (GH-12681)Matt Houglum2019-04-043-4/+7
|