]> granicus.if.org Git - python/log
python
9 years agoFix typo in telnet docs (reported by Keith Briggs)
Tim Golden [Wed, 8 Apr 2015 15:52:27 +0000 (16:52 +0100)]
Fix typo in telnet docs (reported by Keith Briggs)

9 years agoactually ssl3 is just completely broken
Benjamin Peterson [Wed, 8 Apr 2015 15:11:00 +0000 (11:11 -0400)]
actually ssl3 is just completely broken

9 years agoIssue #23400: Raise same exception on both Python 2 and 3 if sem_open is not available.
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.

9 years agoSkip nntplib tests when transient errors captured.
Berker Peksag [Wed, 8 Apr 2015 08:24:27 +0000 (11:24 +0300)]
Skip nntplib tests when transient errors captured.

9 years agoIssue #23879, asyncio: SelectorEventLoop.sock_connect() must not call connect()
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.

9 years agoremove smtpd dead code (closes #23873)
Benjamin Peterson [Tue, 7 Apr 2015 15:59:06 +0000 (11:59 -0400)]
remove smtpd dead code (closes #23873)

Patch by Hoolean.

9 years agoUpdate pip to 6.1.1
Donald Stufft [Tue, 7 Apr 2015 11:09:59 +0000 (07:09 -0400)]
Update pip to 6.1.1

9 years agoIssue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
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

9 years agoIssue #23881: urllib.request.ftpwrapper constructor now closes the socket if
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.

9 years agoUpgrade pip to 6.1.0 and setuptools to 15.0
Donald Stufft [Tue, 7 Apr 2015 05:29:33 +0000 (01:29 -0400)]
Upgrade pip to 6.1.0 and setuptools to 15.0

9 years agoIssue #22977: Remove unconditional import of ctypes.
Serhiy Storchaka [Mon, 6 Apr 2015 17:37:16 +0000 (20:37 +0300)]
Issue #22977: Remove unconditional import of ctypes.

9 years agoremove extra arguments in arg parsing format codes (closes #23875)
Benjamin Peterson [Mon, 6 Apr 2015 17:05:22 +0000 (13:05 -0400)]
remove extra arguments in arg parsing format codes (closes #23875)

9 years agoAdded missing right bracket (reported by Daryl Klakouski)
Tim Golden [Mon, 6 Apr 2015 10:04:49 +0000 (11:04 +0100)]
Added missing right bracket (reported by Daryl Klakouski)

9 years agofix extended command syntax (closes #23872)
Benjamin Peterson [Sun, 5 Apr 2015 14:01:48 +0000 (10:01 -0400)]
fix extended command syntax (closes #23872)

9 years agoIssue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
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.

9 years agoOpen files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:25 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.

9 years agoIssue #23338: Fixed formatting ctypes error messages on Cygwin.
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.

9 years agoIssue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Sat, 4 Apr 2015 06:47:31 +0000 (09:47 +0300)]
Issue #23825: Fixed test_idle under -OO.

9 years agoEscaped backslashes in docstrings.
Serhiy Storchaka [Fri, 3 Apr 2015 15:12:41 +0000 (18:12 +0300)]
Escaped backslashes in docstrings.

9 years agoIssue #23219: Update asyncio.wait_for() documentation
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.

9 years agoIssue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
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.

9 years agoIssue #22351: Fix test_nntplib if the ssl module is missing
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.

9 years agoIssue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
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().

9 years agoIssue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
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.

9 years agoIssue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:09 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.

9 years agoIssue #21526: Skip test_booleans on 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.

9 years agoIssue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
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.

9 years agoIssue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
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.

9 years agoIssue #23851: close() must not be retried when it fails with EINTR
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.

9 years agoIssue #22977: Fix test_exceptions
Victor Stinner [Thu, 2 Apr 2015 12:17:38 +0000 (14:17 +0200)]
Issue #22977: Fix test_exceptions

9 years agoIssue #21526: Fixed the test_booleans test for wantobjects = 0.
Serhiy Storchaka [Thu, 2 Apr 2015 08:46:07 +0000 (11:46 +0300)]
Issue #21526: Fixed the test_booleans test for wantobjects = 0.

9 years agoIssue #21526: Tkinter now supports new boolean type in Tcl 8.5.
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.

9 years agoIssue #22977: Fixed formatting Windows error messages on Wine.
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.

9 years agoreplace 512 bit dh key with a 2014 bit one (closes #23844)
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.

9 years agoremove assignment in conditional
Benjamin Peterson [Wed, 1 Apr 2015 15:16:40 +0000 (11:16 -0400)]
remove assignment in conditional

9 years agoIssue #23821: Fixed test_pdb failure under -O.
Serhiy Storchaka [Wed, 1 Apr 2015 13:58:19 +0000 (16:58 +0300)]
Issue #23821: Fixed test_pdb failure under -O.

9 years agoIssue #23838: linecache now clears the cache and returns an empty result on
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.

9 years agoIssue #23799: Added test.support.start_threads() for running and cleaning up
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.

9 years agodocument what exactly str.splitlines() splits on (closes #12855)
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.

9 years agoIssue #18473: Fixed pickle compatibility tests for optional modules.
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.

9 years agoIssue #18473: Fixed 2to3 and 3to2 compatible pickle 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.

9 years agoIssue #23729: Improve docs for ElementTree namespace parsing
Raymond Hettinger [Tue, 31 Mar 2015 03:29:28 +0000 (20:29 -0700)]
Issue #23729:  Improve docs for ElementTree namespace parsing

9 years ago#23792: also catch interrupt around pipe.write.
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.

9 years agoIssue #22585: os.urandom() now releases the GIL when the getentropy() is used
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+).

9 years agoIssue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.
Serhiy Storchaka [Mon, 30 Mar 2015 06:58:41 +0000 (09:58 +0300)]
Issue #23785: Fixed memory leak in TextIOWrapper.tell() in rare circumstances.

9 years agoIssue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of
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.

9 years ago#23745: handle duplicate MIME parameter names in new parser.
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...

9 years agoIssue #22390: test.regrtest now emits a warning if temporary files or
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.

9 years agoCloses #23801 - Ignore entire preamble to multipart in cgi.FieldStorage
Donald Stufft [Sun, 29 Mar 2015 20:43:23 +0000 (16:43 -0400)]
Closes #23801 - Ignore entire preamble to multipart in cgi.FieldStorage

9 years ago#23792: Ignore KeyboardInterrupt when the pydoc pager is active.
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.)

9 years agoIssue #23803: Fixed str.partition() and str.rpartition() when a separator
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.

9 years agoMake some tests more frienly to MemoryError.
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.

9 years agoIssue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og
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".

9 years agoasyncio: Fix _SelectorTransport.__repr__() if the event loop is closed
Victor Stinner [Fri, 27 Mar 2015 14:20:08 +0000 (15:20 +0100)]
asyncio: Fix _SelectorTransport.__repr__() if the event loop is closed

9 years agoCheck that failed writerow() doesn't produce change a file.
Serhiy Storchaka [Wed, 25 Mar 2015 17:16:15 +0000 (19:16 +0200)]
Check that failed writerow() doesn't produce change a file.

9 years agoIssue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.
Serhiy Storchaka [Wed, 25 Mar 2015 14:40:15 +0000 (16:40 +0200)]
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.

9 years agoIssue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(),
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.

9 years agoIssue #23571: Fix reentrant call to Py_FatalError()
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.

9 years agoFixed bytes warnings when run tests with -vv.
Serhiy Storchaka [Tue, 24 Mar 2015 23:33:19 +0000 (01:33 +0200)]
Fixed bytes warnings when run tests with -vv.

9 years agoIssue #21802: The reader in BufferedRWPair now is closed even when closing
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().

9 years agoIssue #23671: string.Template now allows to specify the "self" parameter as
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.

9 years agoAdded tests for mixed kinds of Unicode strings.
Serhiy Storchaka [Tue, 24 Mar 2015 19:48:30 +0000 (21:48 +0200)]
Added tests for mixed kinds of Unicode strings.

9 years agoIssue #23583: Added tests for standard IO streams in IDLE.
Serhiy Storchaka [Tue, 24 Mar 2015 17:46:54 +0000 (19:46 +0200)]
Issue #23583: Added tests for standard IO streams in IDLE.

9 years agoIssue #23571: Py_FatalError() now tries to flush sys.stdout and sys.stderr
Victor Stinner [Tue, 24 Mar 2015 12:44:35 +0000 (13:44 +0100)]
Issue #23571: Py_FatalError() now tries to flush sys.stdout and sys.stderr

It should help to see exceptions when stderr if buffered: PyErr_Display() calls
sys.stderr.write(), it doesn't write into stderr file descriptor directly.

9 years agoIssue #23571: Enhance Py_FatalError()
Victor Stinner [Tue, 24 Mar 2015 10:24:06 +0000 (11:24 +0100)]
Issue #23571: Enhance Py_FatalError()

* Display the current Python stack if an exception was raised but the exception
  has no traceback
* Disable faulthandler if an exception was raised (before it was only disabled
  if no exception was raised)
* To display the current Python stack, call PyGILState_GetThisThreadState()
  which works even if the GIL was released

9 years ago#11468: improve unittest basic example. Initial patch by Florian Preinstorfer.
Ezio Melotti [Tue, 24 Mar 2015 10:42:41 +0000 (12:42 +0200)]
#11468: improve unittest basic example.  Initial patch by Florian Preinstorfer.

9 years agoIssue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)
Victor Stinner [Mon, 23 Mar 2015 20:20:27 +0000 (21:20 +0100)]
Issue #23654: Fix faulthandler._stack_overflow() for the Intel C Compiler (ICC)

Issue #23654: Turn off ICC's tail call optimization for the stack_overflow
generator. ICC turns the recursive tail call into a loop.

Patch written by Matt Frank.

9 years agoIssue #21560: An attempt to write a data of wrong type no longer cause
Serhiy Storchaka [Mon, 23 Mar 2015 13:25:43 +0000 (15:25 +0200)]
Issue #21560: An attempt to write a data of wrong type no longer cause
GzipFile corruption.  Original patch by Wolfgang Maier.

9 years agoIssue 23729: Document ElementTree namespace handling and fix an omission in the...
Raymond Hettinger [Sun, 22 Mar 2015 22:29:09 +0000 (15:29 -0700)]
Issue 23729:  Document ElementTree namespace handling and fix an omission in the XPATH predicate table.

9 years ago#23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.
R David Murray [Sun, 22 Mar 2015 20:17:46 +0000 (16:17 -0400)]
#23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.

9 years ago#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
R David Murray [Sun, 22 Mar 2015 19:18:23 +0000 (15:18 -0400)]
#23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.

Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.

Patch by James Rutherford, with additional cleaning up of the
'request' documentation by me.

9 years ago#23700: fix/improve comment
R David Murray [Sun, 22 Mar 2015 16:33:46 +0000 (12:33 -0400)]
#23700: fix/improve comment

9 years agoclarify behavior of shutil.move when destination exists (closes #22933)
Benjamin Peterson [Sun, 22 Mar 2015 14:11:54 +0000 (10:11 -0400)]
clarify behavior of shutil.move when destination exists (closes #22933)

Patch by Mike Short.

9 years agoIssue #22289: Prevent test_urllib2net failures due to ftp connection timeout.
Ned Deily [Sun, 22 Mar 2015 08:14:48 +0000 (01:14 -0700)]
Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.

9 years agoIssue #22079: Deprecation warning now is issued in PyType_Ready() instead of
Serhiy Storchaka [Sun, 22 Mar 2015 07:46:36 +0000 (09:46 +0200)]
Issue #22079: Deprecation warning now is issued in  PyType_Ready() instead of
raising TypeError when statically allocated type subclasses dynamically
allocated type

9 years agoIssue #22351: The nntplib.NNTP constructor no longer leaves the connection
Serhiy Storchaka [Sat, 21 Mar 2015 07:40:26 +0000 (09:40 +0200)]
Issue #22351: The nntplib.NNTP constructor no longer leaves the connection
and socket open until the garbage collector cleans them up.  Patch by
Martin Panter.

9 years ago#11726: Make linecache docs reflect that all files are treated the same.
R David Murray [Fri, 20 Mar 2015 15:31:38 +0000 (11:31 -0400)]
#11726: Make linecache docs reflect that all files are treated the same.

Being able to read non-python text files is not a purpose of linecache, but it
does work and people use it.  This changeset adjusts the language to make it
clear that Python files are not treated uniquely, but does not go so far as to
say reading non-python files is explicitly supported.

9 years agoIssue #23681: Fixed Python 2 to 3 poring bugs.
Serhiy Storchaka [Fri, 20 Mar 2015 14:46:19 +0000 (16:46 +0200)]
Issue #23681: Fixed Python 2 to 3 poring bugs.
Indexing bytes retiurns an integer, not bytes.

9 years agoIssue #23700: NamedTemporaryFile iterator closed underlied file object in
Serhiy Storchaka [Fri, 20 Mar 2015 14:11:20 +0000 (16:11 +0200)]
Issue #23700: NamedTemporaryFile iterator closed underlied file object in
some circunstances while NamedTemporaryFile object was living.  This causes
failing test_csv.  Changed the implementation of NamedTemporaryFile.__iter__
to make tests passed.

9 years agoIssue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
Ned Deily [Thu, 19 Mar 2015 23:21:10 +0000 (16:21 -0700)]
Issue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.

9 years agoFixed Misc/NEWS entry for issue #23136.
Serhiy Storchaka [Thu, 19 Mar 2015 17:52:50 +0000 (19:52 +0200)]
Fixed Misc/NEWS entry for issue #23136.

9 years agoIssue #23136: _strptime now uniformly handles all days in week 0, including
Serhiy Storchaka [Thu, 19 Mar 2015 17:13:37 +0000 (19:13 +0200)]
Issue #23136: _strptime now uniformly handles all days in week 0, including
Jan 30 of previous year.  Based on patch by Jim Carroll.

9 years agoIssue #23700: Iterator of NamedTemporaryFile now keeps a reference to
Serhiy Storchaka [Thu, 19 Mar 2015 13:23:15 +0000 (15:23 +0200)]
Issue #23700: Iterator of NamedTemporaryFile now keeps a reference to
NamedTemporaryFile instance.  Patch by Bohuslav Kabrda.

9 years agowrap properly
Benjamin Peterson [Thu, 19 Mar 2015 02:35:38 +0000 (21:35 -0500)]
wrap properly

9 years agoissue23673
Ethan Furman [Thu, 19 Mar 2015 01:19:30 +0000 (18:19 -0700)]
issue23673
add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method

9 years agoIssue #22903: The fake test case created by unittest.loader when it fails importing...
Antoine Pitrou [Wed, 18 Mar 2015 22:56:46 +0000 (23:56 +0100)]
Issue #22903: The fake test case created by unittest.loader when it fails importing a test module is now picklable.

9 years agoIssue #23353: improve exceptions tests for generators
Antoine Pitrou [Wed, 18 Mar 2015 21:22:46 +0000 (22:22 +0100)]
Issue #23353: improve exceptions tests for generators

9 years ago_tracemalloc.c: Fix typo
Victor Stinner [Wed, 18 Mar 2015 15:05:18 +0000 (16:05 +0100)]
_tracemalloc.c: Fix typo

9 years agoIssue #11726: Fix linecache example in the doc
Victor Stinner [Wed, 18 Mar 2015 13:16:50 +0000 (14:16 +0100)]
Issue #11726: Fix linecache example in the doc

Use a Python source file (linecache.__file__) instead of /etc/passwd.

Modify also linecache docstrings to clarify the linecache is written to cache
Python source files, not any text files.

9 years agoIssue #11726: clarify linecache doc: linecache is written to cache Python
Victor Stinner [Wed, 18 Mar 2015 13:14:42 +0000 (14:14 +0100)]
Issue #11726: clarify linecache doc: linecache is written to cache Python
source files, even if "it works" with other text files encoded to UTF-8.

9 years agoIssue #19428: Document that PyMarshal_ReadLongFromFile() and
Victor Stinner [Wed, 18 Mar 2015 12:58:49 +0000 (13:58 +0100)]
Issue #19428: Document that PyMarshal_ReadLongFromFile() and
PyMarshal_ReadShortFromFile() can fail.

9 years agoIssue #23456: Add missing @coroutine decorators in asyncio
Victor Stinner [Wed, 18 Mar 2015 10:37:42 +0000 (11:37 +0100)]
Issue #23456: Add missing @coroutine decorators in asyncio

9 years agoIssue #23207: Improved kwarg validation.
Vinay Sajip [Wed, 18 Mar 2015 08:47:58 +0000 (08:47 +0000)]
Issue #23207: Improved kwarg validation.

9 years agoIssue #22585: make URandomFDTests test case actually run
Ned Deily [Tue, 17 Mar 2015 11:30:08 +0000 (04:30 -0700)]
Issue #22585: make URandomFDTests test case actually run

9 years agoIssue #23682: Delete Python 2.2 mention from distutils documentation.
Berker Peksag [Tue, 17 Mar 2015 04:55:48 +0000 (06:55 +0200)]
Issue #23682: Delete Python 2.2 mention from distutils documentation.

Patch by Thomas Kluyver.

9 years agoversionchanged for rc4 removal (closes #23679)
Benjamin Peterson [Mon, 16 Mar 2015 17:43:38 +0000 (12:43 -0500)]
versionchanged for rc4 removal (closes #23679)

9 years agoUse non-zero and non-last positions in error handler tests.
Serhiy Storchaka [Mon, 16 Mar 2015 06:29:47 +0000 (08:29 +0200)]
Use non-zero and non-last positions in error handler tests.

9 years agoIncreased coverage of standard codec error handlers.
Serhiy Storchaka [Sun, 15 Mar 2015 21:41:37 +0000 (23:41 +0200)]
Increased coverage of standard codec error handlers.

9 years agoIssue #23549: Clarify confusion in heapq doc - accessing the mininmal element
Eli Bendersky [Sun, 15 Mar 2015 03:14:23 +0000 (20:14 -0700)]
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element

The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.

9 years agoIssue #23568: Add rdivmod support to MagicMock() objects.
Berker Peksag [Sat, 14 Mar 2015 23:51:56 +0000 (01:51 +0200)]
Issue #23568: Add rdivmod support to MagicMock() objects.

Patch by Håkan Lövdahl.