- 15 Apr, 2019 7 commits
-
-
Victor Stinner authored
Move unstable CPython API from Include/pymem.h into a new Include/cpython/pymem.h header file.
-
Inada Naoki authored
Keep the nudge towards DeprecationWarning, but remove the "Note" markup and generally shorten the description. Ref: https://github.com/python/cpython/pull/12505/files#r273978757
-
Jakub Molinski authored
Remove left-over references to Python 3.0 as the future in Fraction class docstrings.
-
Victor Stinner authored
Fix test_imap4_host_default_value() of test_imaplib: catch also errno.ENETUNREACH error.
-
pxinwr authored
time.clock() is not available on VxWorks.
-
pxinwr authored
-
Inada Naoki authored
* cached_property is more efficient than hand crafted cache. * In IPv[46]Network, `self.network.prefixlen` is same to `self._prefixlen`.
-
- 14 Apr, 2019 5 commits
-
-
Stefan Behnel authored
bpo-30485: Re-allow empty strings in ElementPath namespace mappings since they might actually be harmless and unused (and thus went undetected previously). (#12830)
-
Gregory P. Smith authored
-
Mickaël Schoentgen authored
-
Stefan Behnel authored
-
Bernt Røskar Brenna authored
Add new keyword arguments "default_namespace" and "xml_declaration" to functions ET.tostring() and ET.tostringlist(), as known from ElementTree.write().
-
- 13 Apr, 2019 7 commits
-
-
Xtreak authored
In Python having a trace function in effect while mock is imported causes isinstance to be wrong for MagicMocks. This is due to the usage of super() in some class methods, as this sets the __class__ attribute. To avoid this, as a workaround, alias the usage of super .
-
Pablo Galindo authored
bpo-36427: Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread (GH-12541) Calling these function from a thread when the runtime is finalizing will terminate the thread, even if the thread was not created by Python. Users can use _Py_IsFinalizing or sys.is_finalizing to check if the interpreter is in the process of being finalized before calling this function to avoid unwanted termination.
-
Pablo Galindo authored
-
Pablo Galindo authored
After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.
-
Cheryl Sabella authored
-
Rémi Lapeyre authored
-
Inada Naoki authored
-
- 12 Apr, 2019 19 commits
-
-
Victor Stinner authored
-
Sebastian Rittau authored
-
mrh1997 authored
Since bpo-30291 it is possible to specify the architecture of Python when using the launcher
-
Victor Stinner authored
-
Victor Stinner authored
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.
-
Victor Stinner authored
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().
-
Victor Stinner authored
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.
-
Steve Dower authored
-
Paul Monson authored
This enables using the `--preset-iot` option with the PC/layout script, but does not enable IoT builds as part of any normal release.
-
Paul Monson authored
-
Thomas Grainger authored
-
Christopher Head authored
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.
-
Kingsley M authored
-
Eric Snow authored
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.
-
Victor Stinner authored
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.
-
Michael Felt authored
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').
-
Victor Stinner authored
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
-
Inada Naoki authored
-
- 11 Apr, 2019 2 commits
-
-
Emmanuel Arias authored
-
Victor Stinner authored
"make tags" and "make TAGS" now also parse Modules/_io/*.c and Modules/_io/*.h.
-