- 17 Apr, 2019 5 commits
-
-
Lihua Zhao authored
subprocess.Popen doesn't support preexec on VxWorks.
-
Victor Stinner authored
Document the change in a NEWS entry of the Security category.
-
Victor Stinner authored
shutil.which() and distutils.spawn.find_executable() now use os.confstr("CS_PATH") if available instead of os.defpath, if the PATH environment variable is not set. Don't use os.confstr("CS_PATH") nor os.defpath if the PATH environment variable is set to an empty string to mimick Unix 'which' command behavior. Changes: * find_executable() now starts by checking for the executable in the current working directly case. Add an explicit "if not path: return None". * Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
-
Colin Watson authored
-
Lihua Zhao authored
Fix test_tabnanny on VxWorks: adjust ENOENT error message, use os.strerror().
-
- 16 Apr, 2019 5 commits
-
-
Inada Naoki authored
-
Inada Naoki authored
It reduces "data" segment in python about 200KB.
-
Matthias Bussonnier authored
Signed-off-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
-
Berker Peksag authored
-
Stéphane Wirtel authored
Use literalinclude markup to include Tools/scripts/serve.py code. Tools/scripts/serve.py first argument on the command line is now optional.
-
- 15 Apr, 2019 11 commits
-
-
Inada Naoki authored
IPv4Interface and IPv6Interface did not has netmask and hostmask attributes when its argument is bytes or int. This commit extracts method for constructors of Network and Interface, and ensure Interface class always provides them.
-
Victor Stinner authored
The imap.IMAP4.logout() method no longer ignores silently arbitrary exceptions. Changes: * The IMAP4.logout() method now expects a "BYE" untagged response, rather than relying on _check_bye() which raises a self.abort() exception. * IMAP4.__exit__() now does nothing if the client already logged out. * Add more debug info if test_logout() tests fail.
-
Victor Stinner authored
Don't assign generations[2].threshold to generations[2].threshold: useless operation.
-
Victor Stinner authored
-
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 7 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.
-