Christian Heimes [Thu, 16 Apr 2015 15:25:45 +0000 (17:25 +0200)]
Remove redundant check for tb != NULL to shut up Coverity . It has been set to Py_None a couple of lines earlier.
CID 1291697 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking tb suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
Larry Hastings [Thu, 16 Apr 2015 03:02:12 +0000 (23:02 -0400)]
Issue #23935: Argument Clinic's understanding of format units
accepting bytes, bytearrays, and buffers is now consistent with
both the documentation and the implementation.
Ned Deily [Thu, 16 Apr 2015 00:11:47 +0000 (17:11 -0700)]
Issues #22980, 23969: For OS X, use PEP 3149-style file names for extension
module binaries, with a platform triple of just "darwin", resulting in
file names like:
_ssl.cpython-35m-darwin.so
rather than just _ssl.so as previously.
Instead of attempting to encode differences in CPU architecture and OS X
deployment targets in the file name as is done on other platforms,
these continue to be managed by the use of Apple multi-architecture
("fat") files, by the system dynamic loader, and by logic in higher-levels
like sysconfig.get_platform() and pip.
- Issue #22980: Under Linux, GNU/KFreeBSD and the Hurd, C extensions now include
the architecture triplet in the extension name, to make it easy to test builds
for different ABIs in the same working tree.
Gregory P. Smith [Tue, 14 Apr 2015 23:14:25 +0000 (16:14 -0700)]
Add a subprocess.run() function than returns a CalledProcess instance for a
more consistent API than the existing call* functions.
(enhancement from issue 23342)
Antoine Pitrou [Tue, 14 Apr 2015 22:41:29 +0000 (00:41 +0200)]
Issue #21217: inspect.getsourcelines() now tries to compute the start and
end lines from the code object, fixing an issue when a lambda function is
used as decorator argument. Patch by Thomas Ballinger.
Gregory P. Smith [Tue, 14 Apr 2015 19:58:05 +0000 (12:58 -0700)]
issue9859: Adds a CPyMatchTest test case to compare the exposed APIs
of the Python io module and the C io module. They do not currently
match so the failing test is marked with @unittest.skip.
R David Murray [Tue, 14 Apr 2015 00:04:29 +0000 (20:04 -0400)]
#11754: test contents of string module attributes.
As noted in the comment, while the order of the items in the attributes is not
technically guaranteed, after all this time there is almost certainly user
code out there that relies on it, so we might as well test for it.
Zachary Ware [Mon, 13 Apr 2015 20:00:43 +0000 (15:00 -0500)]
Issue #21741: Update 147 test modules to use test discovery.
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
- the PKG_PROG_PKG_CONFIG macro is not part of autoconf, but comes from third
party sources. Run aclocal to import it to aclocal.m4 and add aclocal.m4
to the archive.
- the PKG_PROG_PKG_CONFIG macro is not part of autoconf, but comes from third
party sources. Run aclocal to import it to aclocal.m4 and add aclocal.m4
to the archive.
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
Antoine Pitrou [Mon, 13 Apr 2015 17:48:19 +0000 (19:48 +0200)]
Issue #23309: Avoid a deadlock at shutdown if a daemon thread is aborted
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
Antoine Pitrou [Mon, 13 Apr 2015 17:41:47 +0000 (19:41 +0200)]
Issue #23309: Avoid a deadlock at shutdown if a daemon thread is aborted
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.