]>
granicus.if.org Git - python/log
Zachary Ware [Mon, 13 Apr 2015 16:32:01 +0000 (11:32 -0500)]
Closes #23932: Merge with 3.4
Zachary Ware [Mon, 13 Apr 2015 16:30:47 +0000 (11:30 -0500)]
Issue #23932: Update the tutorial section on function annotations.
Patch by Juti Noppornpitak.
Zachary Ware [Mon, 13 Apr 2015 16:08:55 +0000 (11:08 -0500)]
Merge with 3.4
Zachary Ware [Mon, 13 Apr 2015 16:07:35 +0000 (11:07 -0500)]
Attribute Michael Dorman for his initial patch on issue #18402.
Zachary Ware [Mon, 13 Apr 2015 15:53:11 +0000 (10:53 -0500)]
Closes #18402: Merge with 3.4
Zachary Ware [Mon, 13 Apr 2015 15:51:37 +0000 (10:51 -0500)]
Merge heads
Zachary Ware [Mon, 13 Apr 2015 15:46:40 +0000 (10:46 -0500)]
Issue #18402: Also look for 64 bit Perl in build_ssl.py.
It's still not necessary to build, but may be useful to some.
Larry Hastings [Mon, 13 Apr 2015 15:30:56 +0000 (11:30 -0400)]
Doc clarification / edification on the semantics of the 'w*' format unit.
Nick Coghlan [Mon, 13 Apr 2015 15:30:49 +0000 (11:30 -0400)]
Rebuild _freeze_importlib.o when Makefile changes
Zachary Ware [Mon, 13 Apr 2015 04:24:17 +0000 (23:24 -0500)]
Fix warning from Sphinx.
R David Murray [Mon, 13 Apr 2015 01:53:21 +0000 (21:53 -0400)]
Merge: Don't gitignore the Python directory on case insensitive file systems.
R David Murray [Mon, 13 Apr 2015 01:52:44 +0000 (21:52 -0400)]
Don't gitignore the Python directory on case insensitive file systems.
R David Murray [Mon, 13 Apr 2015 01:52:12 +0000 (21:52 -0400)]
Merge: #17380: Document tp_init return value in extending docs.
R David Murray [Mon, 13 Apr 2015 01:51:36 +0000 (21:51 -0400)]
#17380: Document tp_init return value in extending docs.
Patch by James Powell.
R David Murray [Sun, 12 Apr 2015 22:47:56 +0000 (18:47 -0400)]
#23464: remove JoinableQueue that was deprecated in 3.4.4.
Patch by A. Jesse Jiryu Davis.
Benjamin Peterson [Sun, 12 Apr 2015 21:56:34 +0000 (17:56 -0400)]
make DirEntryType and ScandirIteratorType static (closes #23918)
Steve Dower [Sun, 12 Apr 2015 19:44:54 +0000 (15:44 -0400)]
Issue #23668: Regenerates posixmodule.c.h for new ifdefs
Berker Peksag [Sun, 12 Apr 2015 10:53:33 +0000 (13:53 +0300)]
Issue #12955: Change the urlopen() examples to use context managers where appropriate.
Patch by Martin Panter.
Berker Peksag [Sun, 12 Apr 2015 10:52:49 +0000 (13:52 +0300)]
Issue #12955: Change the urlopen() examples to use context managers where appropriate.
Patch by Martin Panter.
Ethan Furman [Sun, 12 Apr 2015 06:23:06 +0000 (23:23 -0700)]
Close issue23900: add default __doc__ to new enumerations that do not specify one.
Steve Dower [Sun, 12 Apr 2015 04:26:43 +0000 (00:26 -0400)]
Issue #23668: Suppresses invalid parameter handler around chsize calls.
Steve Dower [Sun, 12 Apr 2015 04:26:27 +0000 (00:26 -0400)]
Issue #23524: Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler.
Antoine Pitrou [Sat, 11 Apr 2015 22:08:02 +0000 (00:08 +0200)]
Close #23904: fix pathlib documentation misleadingly mentioning that bytes objects are accepted in the PurePath constructor
Guido van Rossum [Sat, 11 Apr 2015 21:44:01 +0000 (17:44 -0400)]
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com.
Berker Peksag [Sat, 11 Apr 2015 11:59:30 +0000 (14:59 +0300)]
Issue #23912: Fix code formatting in datamodel.rst.
Patch by James Edwards.
Benjamin Peterson [Sat, 11 Apr 2015 11:42:42 +0000 (07:42 -0400)]
use imperative
Serhiy Storchaka [Fri, 10 Apr 2015 13:21:58 +0000 (16:21 +0300)]
Merge heads
Berker Peksag [Fri, 10 Apr 2015 13:19:13 +0000 (16:19 +0300)]
Issue #23025: Add a mention of os.urandom to RAND_bytes and RAND_pseudo_bytes docs.
Patch by Alex Gaynor.
Serhiy Storchaka [Fri, 10 Apr 2015 13:18:33 +0000 (16:18 +0300)]
Merge heads
Berker Peksag [Fri, 10 Apr 2015 13:11:12 +0000 (16:11 +0300)]
Issue #23062: Add a test for suppressing --version with argparse.SUPPRESS.
TestHelpVersionOptional was redundant.
Serhiy Storchaka [Fri, 10 Apr 2015 13:08:43 +0000 (16:08 +0300)]
Issue #21859: Corrected FileIO docstrings.
Serhiy Storchaka [Fri, 10 Apr 2015 10:24:41 +0000 (13:24 +0300)]
Issue #23865: close() methods in multiple modules now are idempotent and more
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
Zachary Ware [Fri, 10 Apr 2015 01:16:05 +0000 (20:16 -0500)]
Put the NASM pulled from svn.python.org at the front of the PATH.
This will prevent failures from the version of NASM installed on buildbots,
if the ability to override the version used is desired again later, we can
figure out a way to opt in.
Serhiy Storchaka [Thu, 9 Apr 2015 23:18:44 +0000 (02:18 +0300)]
Replaced "string" with "bytes object" in docstrings of binary I/O objects.
Zachary Ware [Thu, 9 Apr 2015 20:55:56 +0000 (15:55 -0500)]
Backed out changeset
bc41a4d6c58f after buildbots have new OpenSSL source.
Zachary Ware [Thu, 9 Apr 2015 20:51:17 +0000 (15:51 -0500)]
Refresh OpenSSL sources on the buildbots
Zachary Ware [Wed, 8 Apr 2015 00:59:37 +0000 (19:59 -0500)]
Issue #23686: Update Windows build to use OpenSSL 1.0.2a.
Tim Golden [Wed, 8 Apr 2015 15:52:27 +0000 (16:52 +0100)]
Fix typo in telnet docs (reported by Keith Briggs)
Benjamin Peterson [Wed, 8 Apr 2015 15:11:00 +0000 (11:11 -0400)]
actually ssl3 is just completely broken
Berker Peksag [Wed, 8 Apr 2015 14:56:30 +0000 (17:56 +0300)]
Issue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.
Patch by Davin Potts.
Berker Peksag [Wed, 8 Apr 2015 08:24:27 +0000 (11:24 +0300)]
Skip nntplib tests when transient errors captured.
Victor Stinner [Tue, 7 Apr 2015 19:38:04 +0000 (21:38 +0200)]
Issue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
again if the first call to connect() raises an InterruptedError.
When the C function connect() fails with EINTR, the connection runs in
background. We have to wait until the socket becomes writable to be notified
when the connection succeed or fails.
Benjamin Peterson [Tue, 7 Apr 2015 15:59:06 +0000 (11:59 -0400)]
remove smtpd dead code (closes #23873)
Patch by Hoolean.
Donald Stufft [Tue, 7 Apr 2015 11:09:59 +0000 (07:09 -0400)]
Update pip to 6.1.1
Victor Stinner [Tue, 7 Apr 2015 10:52:50 +0000 (12:52 +0200)]
Issue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
are down, don't use anymore in test_urllib2net
Victor Stinner [Tue, 7 Apr 2015 10:49:27 +0000 (12:49 +0200)]
Issue #23881: urllib.request.ftpwrapper constructor now closes the socket if
the FTP connection failed to fix a ResourceWarning.
Donald Stufft [Tue, 7 Apr 2015 05:29:33 +0000 (01:29 -0400)]
Upgrade pip to 6.1.0 and setuptools to 15.0
Serhiy Storchaka [Mon, 6 Apr 2015 17:37:16 +0000 (20:37 +0300)]
Issue #22977: Remove unconditional import of ctypes.
Benjamin Peterson [Mon, 6 Apr 2015 17:05:22 +0000 (13:05 -0400)]
remove extra arguments in arg parsing format codes (closes #23875)
Tim Golden [Mon, 6 Apr 2015 10:04:49 +0000 (11:04 +0100)]
Added missing right bracket (reported by Daryl Klakouski)
Benjamin Peterson [Sun, 5 Apr 2015 14:01:48 +0000 (10:01 -0400)]
fix extended command syntax (closes #23872)
Serhiy Storchaka [Sat, 4 Apr 2015 09:43:01 +0000 (12:43 +0300)]
Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool. tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:25 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:05:48 +0000 (10:05 +0300)]
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.
Serhiy Storchaka [Sat, 4 Apr 2015 06:47:31 +0000 (09:47 +0300)]
Issue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Fri, 3 Apr 2015 15:12:41 +0000 (18:12 +0300)]
Escaped backslashes in docstrings.
Victor Stinner [Fri, 3 Apr 2015 15:08:19 +0000 (17:08 +0200)]
Issue #23219: Update asyncio.wait_for() documentation
the wait is cancelled, the future *fut* is now also cancelled.
Serhiy Storchaka [Fri, 3 Apr 2015 12:02:20 +0000 (15:02 +0300)]
Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
Victor Stinner [Fri, 3 Apr 2015 09:06:40 +0000 (11:06 +0200)]
Issue #22351: Fix test_nntplib if the ssl module is missing
@unittest.skipUnless(ssl, '...') doesn't work because the class body uses the
nntplib.NNTP_SSL attribute which doesn't exist.
Serhiy Storchaka [Thu, 2 Apr 2015 20:05:57 +0000 (23:05 +0300)]
Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
Serhiy Storchaka [Thu, 2 Apr 2015 17:55:59 +0000 (20:55 +0300)]
Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:09 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 16:57:52 +0000 (19:57 +0300)]
Issue #21526: Skip test_booleans on Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 15:46:50 +0000 (18:46 +0300)]
Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5.
Victor Stinner [Thu, 2 Apr 2015 15:16:08 +0000 (17:16 +0200)]
Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
result of sendto() instead of the C int type.
Victor Stinner [Thu, 2 Apr 2015 14:24:46 +0000 (16:24 +0200)]
Issue #23851: close() must not be retried when it fails with EINTR
See the PEP 475 for the rationale.
Victor Stinner [Thu, 2 Apr 2015 12:17:38 +0000 (14:17 +0200)]
Issue #22977: Fix test_exceptions
Serhiy Storchaka [Thu, 2 Apr 2015 08:46:07 +0000 (11:46 +0300)]
Issue #21526: Fixed the test_booleans test for wantobjects = 0.
Serhiy Storchaka [Thu, 2 Apr 2015 07:35:57 +0000 (10:35 +0300)]
Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 06:47:27 +0000 (09:47 +0300)]
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.
Benjamin Peterson [Thu, 2 Apr 2015 04:04:06 +0000 (00:04 -0400)]
replace 512 bit dh key with a 2014 bit one (closes #23844)
Patch by Cédric Krier.
Benjamin Peterson [Wed, 1 Apr 2015 15:16:40 +0000 (11:16 -0400)]
remove assignment in conditional
Serhiy Storchaka [Wed, 1 Apr 2015 13:58:19 +0000 (16:58 +0300)]
Issue #23821: Fixed test_pdb failure under -O.
Serhiy Storchaka [Wed, 1 Apr 2015 13:54:05 +0000 (16:54 +0300)]
Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.
Serhiy Storchaka [Wed, 1 Apr 2015 10:01:14 +0000 (13:01 +0300)]
Issue #23799: Added test.support.start_threads() for running and cleaning up
multiple threads.
Benjamin Peterson [Wed, 1 Apr 2015 01:20:36 +0000 (21:20 -0400)]
document what exactly str.splitlines() splits on (closes #12855)
Patch by Martin Panter.
Serhiy Storchaka [Tue, 31 Mar 2015 13:49:26 +0000 (16:49 +0300)]
Issue #18473: Fixed pickle compatibility tests for optional modules.
Added WindowsError to compatibility mappings.
Serhiy Storchaka [Tue, 31 Mar 2015 10:12:37 +0000 (13:12 +0300)]
Issue #18473: Fixed 2to3 and 3to2 compatible pickle mappings.
Fixed ambigious reverse mappings. Added many new mappings. Import mapping
is no longer applied to modules already mapped with full name mapping.
Added tests for compatible pickling and unpickling and for consistency of
_compat_pickle mappings.
Raymond Hettinger [Tue, 31 Mar 2015 03:29:28 +0000 (20:29 -0700)]
Issue #23729: Improve docs for ElementTree namespace parsing
R David Murray [Mon, 30 Mar 2015 14:14:47 +0000 (10:14 -0400)]
#23792: also catch interrupt around pipe.write.
The previous patch only dealt with KeyboardInterrupt when all of the
data had been consumed by the pager. This deals with the interrupt
when some data is still pending.
Victor Stinner [Mon, 30 Mar 2015 09:18:30 +0000 (11:18 +0200)]
Issue #22585: os.urandom() now releases the GIL when the getentropy() is used
(OpenBSD 5.6+).
Serhiy Storchaka [Mon, 30 Mar 2015 06:58:41 +0000 (09:58 +0300)]
Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.
Serhiy Storchaka [Mon, 30 Mar 2015 06:52:29 +0000 (09:52 +0300)]
Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of
MemoryError.
R David Murray [Mon, 30 Mar 2015 01:53:05 +0000 (21:53 -0400)]
#23745: handle duplicate MIME parameter names in new parser.
This mimics get_param's error handling for the most part. It is slightly
better in some regards as get_param can produce some really weird results for
duplicate *0* parts. It departs from get_param slightly in that if we have a
mix of non-extended and extended pieces for the same parameter name, the new
parser assumes they were all supposed to be extended and concatenates all the
values, whereas get_param always picks the non-extended parameter value. All
of this error recovery is pretty much arbitrary decisions...
Serhiy Storchaka [Sun, 29 Mar 2015 22:28:02 +0000 (01:28 +0300)]
Issue #22390: test.regrtest now emits a warning if temporary files or
directories are left after running a test.
Donald Stufft [Sun, 29 Mar 2015 20:43:23 +0000 (16:43 -0400)]
Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorage
R David Murray [Sun, 29 Mar 2015 19:15:40 +0000 (15:15 -0400)]
#23792: Ignore KeyboardInterrupt when the pydoc pager is active.
Previously, if you hit ctl-c while the pager was active, the python that
launched the subprocess for the pager would see the KeyboardInterrupt in the
__exit__ method of the subprocess context manager where it was waiting for the
subprocess to complete, ending the wait. This would leave the pager running,
while the interactive interpreter, after handling the exception by printing
it, would go back to trying to post a prompt...but the pager would generally
have the terminal in raw mode, and in any case would be still trying to read
from stdin. On some systems, even exiting python at that point would not
restore the terminal mode. The problem with raw mode could also happen if
ctl-C was hit when pydoc was called from the shell command line and the pager
was active.
Instead, we now wait on the subprocess in a loop, ignoring KeyboardInterrupt
just like the pager does, until the pager actually exits.
(Note: this was a regression relative to python2...in python2 the pager
is called via system, and system does not return until the pager exits.)
Serhiy Storchaka [Sun, 29 Mar 2015 16:21:02 +0000 (19:21 +0300)]
Issue #23803: Fixed str.partition() and str.rpartition() when a separator
is wider then partitioned string.
Serhiy Storchaka [Sat, 28 Mar 2015 18:38:37 +0000 (20:38 +0200)]
Make some tests more frienly to MemoryError.
Free memory, unlock hanging threads.
Victor Stinner [Fri, 27 Mar 2015 14:36:01 +0000 (15:36 +0100)]
Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
Victor Stinner [Fri, 27 Mar 2015 14:20:08 +0000 (15:20 +0100)]
asyncio: Fix _SelectorTransport.__repr__() if the event loop is closed
Serhiy Storchaka [Wed, 25 Mar 2015 17:16:15 +0000 (19:16 +0200)]
Check that failed writerow() doesn't produce change a file.
Serhiy Storchaka [Wed, 25 Mar 2015 14:40:15 +0000 (16:40 +0200)]
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Victor Stinner [Wed, 25 Mar 2015 01:25:25 +0000 (02:25 +0100)]
Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),
close the binary file to fix a resource warning.
Victor Stinner [Wed, 25 Mar 2015 00:54:46 +0000 (01:54 +0100)]
Issue #23571: Fix reentrant call to Py_FatalError()
Flushing sys.stdout and sys.stderr in Py_FatalError() can call again
Py_FatalError(). Add a reentrant flag to detect this case and just abort at the
second call.
Serhiy Storchaka [Tue, 24 Mar 2015 23:33:19 +0000 (01:33 +0200)]
Fixed bytes warnings when run tests with -vv.
Serhiy Storchaka [Tue, 24 Mar 2015 21:21:57 +0000 (23:21 +0200)]
Issue #21802: The reader in BufferedRWPair now is closed even when closing
writer failed in BufferedRWPair.close().
Serhiy Storchaka [Tue, 24 Mar 2015 20:28:43 +0000 (22:28 +0200)]
Issue #23671: string.Template now allows to specify the "self" parameter as
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
Serhiy Storchaka [Tue, 24 Mar 2015 19:48:30 +0000 (21:48 +0200)]
Added tests for mixed kinds of Unicode strings.
Serhiy Storchaka [Tue, 24 Mar 2015 17:46:54 +0000 (19:46 +0200)]
Issue #23583: Added tests for standard IO streams in IDLE.