summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-33922: Adding documentation for new "-64" suffix of Python launcher ↵mrh19972019-04-122-13/+24
| | | | | (GH-7849) Since bpo-30291 it is possible to specify the architecture of Python when using the launcher
* bpo-18748: test_io: silence destructor errors (GH-12805)Victor Stinner2019-04-121-0/+29
|
* bpo-36611: Disable serialno field of debug memory allocators (#12796)Victor Stinner2019-04-123-21/+61
| | | | | | | | | | | Omit serialno field from debug hooks on Python memory allocators to reduce the memory footprint by 5%. Enable tracemalloc to get the traceback where a memory block has been allocated when a fatal memory error is logged to decide where to put a breakpoint. Compile Python with PYMEM_DEBUG_SERIALNO defined to get back the field.
* bpo-36389: Add _PyObject_CheckConsistency() function (GH-12803)Victor Stinner2019-04-126-114/+158
| | | | | | Add a new _PyObject_CheckConsistency() function which can be used to help debugging. The function is available in release mode. Add a 'check_content' parameter to _PyDict_CheckConsistency().
* bpo-36618: Add -fmax-type-align=8 flag for clang (GH-12809)Victor Stinner2019-04-123-26/+65
| | | | | | | | | | | | | | Add -fmax-type-align=8 to CFLAGS when clang compiler is detected. The pymalloc memory allocator aligns memory on 8 bytes. On x86-64, clang expects alignment on 16 bytes by default and so uses MOVAPS instruction which can lead to segmentation fault. Instruct clang that Python is limited to alignemnt on 8 bytes to use MOVUPS instruction instead: slower but don't trigger a SIGSEGV if the memory is not aligned on 16 bytes. Sadly, the flag must be expected to CFLAGS and not just CFLAGS_NODIST, since third party C extensions can have the same issue.
* Allow Windows layout builds to fully skip code signing (GH-12808)Steve Dower2019-04-122-3/+8
|
* bpo-36509: Add iot layout for Windows IoT containers (GH-12663)Paul Monson2019-04-123-2/+22
| | | This enables using the `--preset-iot` option with the PC/layout script, but does not enable IoT builds as part of any normal release.
* Enable building nuget packages for ARM32 (GH-12669)Paul Monson2019-04-123-3/+36
|
* bpo-33608: Revert "Factor out a private, per-interpreter ↵Eric Snow2019-04-1211-151/+108
| | | | | _Py_AddPendingCall()." (gh-12806) This reverts commit f13c5c8b9401a9dc19e95d8b420ee100ac022208 (gh-12360).
* Correct grammar in concurrent/futures/process.py docstring (GH-12761)Thomas Grainger2019-04-121-1/+1
|
* Indicate that seek and tell are mandatory on BufferedRandom. (GH-11216)Christopher Head2019-04-121-3/+3
| | | | | | | For BufferedReader and BufferedWriter, seek and tell operations are optional (they may or may not exist based on the underlying stream). For BufferedRandom, they are mandatory: a BufferedRandom should not be constructed over an unseekable underlying stream. Document this.
* 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-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.