]> granicus.if.org Git - python/log
python
9 years agoIssue #23451, #22117: Python 3.5 now requires Windows Vista or newer, so
Victor Stinner [Fri, 27 Mar 2015 13:12:08 +0000 (14:12 +0100)]
Issue #23451, #22117: Python 3.5 now requires Windows Vista or newer, so
GetTickCount64() is now always available.

9 years agoIssue #22117: Add a new Python timestamp format _PyTime_t to pytime.h
Victor Stinner [Fri, 27 Mar 2015 12:31:18 +0000 (13:31 +0100)]
Issue #22117: Add a new Python timestamp format _PyTime_t to pytime.h

In practice, _PyTime_t is a number of nanoseconds. Its C type is a 64-bit
signed number. It's integer value is in the range [-2^63; 2^63-1]. In seconds,
the range is around [-292 years; +292 years]. In term of Epoch timestamp
(1970-01-01), it can store a date between 1677-09-21 and 2262-04-11.

The API has a resolution of 1 nanosecond and use integer number. With a
resolution on 1 nanosecond, 64-bit IEEE 754 floating point numbers loose
precision after 194 days. It's not the case with this API. The drawback is
overflow for values outside [-2^63; 2^63-1], but these values are unlikely for
most Python modules, except of the datetime module.

New functions:

- _PyTime_GetMonotonicClock()
- _PyTime_FromObject()
- _PyTime_AsMilliseconds()
- _PyTime_AsTimeval()

This change uses these new functions in time.sleep() to avoid rounding issues.

The new API will be extended step by step, and the old API will be removed step
by step. Currently, some code is duplicated just to be able to move
incrementally, instead of pushing a large change at once.

9 years agoIssue #23648: Document the PEP 475 in the "Porting to Python 3.5" section and
Victor Stinner [Thu, 26 Mar 2015 22:50:57 +0000 (23:50 +0100)]
Issue #23648: Document the PEP 475 in the "Porting to Python 3.5" section and
add a version changed note in modified functions.

9 years ago_PyUnicodeWriter_WriteStr() now checks that the input string is consistent
Victor Stinner [Thu, 26 Mar 2015 08:37:23 +0000 (09:37 +0100)]
_PyUnicodeWriter_WriteStr() now checks that the input string is consistent
in debug mode to detect bugs earlier.

_PyUnicodeWriter_Finish() doesn't check if the read only string is consistent,
whereas it does check consistency for strings built by itself.

9 years agoIssue #23775: pprint() of OrderedDict now outputs the same representation
Serhiy Storchaka [Thu, 26 Mar 2015 06:51:33 +0000 (08:51 +0200)]
Issue #23775: pprint() of OrderedDict now outputs the same representation
as repr().

9 years agoIssue #23776: Removed asserts from pprint.PrettyPrinter constructor.
Serhiy Storchaka [Thu, 26 Mar 2015 06:43:21 +0000 (08:43 +0200)]
Issue #23776: Removed asserts from pprint.PrettyPrinter constructor.

9 years agoIssue #23765: Removed IsBadStringPtr calls in ctypes
Steve Dower [Thu, 26 Mar 2015 04:58:36 +0000 (21:58 -0700)]
Issue #23765: Removed IsBadStringPtr calls in ctypes

9 years agoIssue #22364: Improved some re error messages using regex for hints.
Serhiy Storchaka [Wed, 25 Mar 2015 19:03:47 +0000 (21:03 +0200)]
Issue #22364: Improved some re error messages using regex for hints.

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

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:41:15 +0000 (16:41 +0200)]
Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.

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 #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
Serhiy Storchaka [Wed, 25 Mar 2015 08:09:41 +0000 (10:09 +0200)]
Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
creation) mode.

9 years agoMissing brace and minor formatting in Windows installer
Steve Dower [Wed, 25 Mar 2015 06:46:55 +0000 (23:46 -0700)]
Missing brace and minor formatting in Windows installer

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 agoCloses #9445: Removes detection of GetFinalPathNameByHandle
Steve Dower [Sat, 21 Mar 2015 04:49:12 +0000 (21:49 -0700)]
Closes #9445: Removes detection of GetFinalPathNameByHandle

9 years agoIssue #23765: Remove IsBadStringPtr calls in ctypes
Steve Dower [Wed, 25 Mar 2015 06:28:54 +0000 (23:28 -0700)]
Issue #23765: Remove IsBadStringPtr calls in ctypes
Also renames a local to avoid warnings about shadowing

9 years agoFixes UI labels and ability to add/remove features.
Steve Dower [Wed, 25 Mar 2015 06:20:57 +0000 (23:20 -0700)]
Fixes UI labels and ability to add/remove features.

9 years agoAdds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals and...
Steve Dower [Wed, 25 Mar 2015 04:25:16 +0000 (21:25 -0700)]
Adds pydoc shortcut, Edit with IDLE menu, moves redist folder into externals and fixes test script.

9 years agoFix typo
Raymond Hettinger [Wed, 25 Mar 2015 04:12:57 +0000 (21:12 -0700)]
Fix typo

9 years agoMinor code and comment cleanups.
Raymond Hettinger [Wed, 25 Mar 2015 04:01:50 +0000 (21:01 -0700)]
Minor code and comment cleanups.

9 years agoIssue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows
Victor Stinner [Wed, 25 Mar 2015 02:16:32 +0000 (03:16 +0100)]
Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows

Windows has no memrchr() function.

This change is only a workaround, the optimization must be reenabled on other
platforms.

9 years agoMerge 3.4 (traceback)
Victor Stinner [Wed, 25 Mar 2015 01:30:01 +0000 (02:30 +0100)]
Merge 3.4 (traceback)

9 years ago(Merge 3.4) Issue #23571: Fix reentrant call to Py_FatalError()
Victor Stinner [Wed, 25 Mar 2015 00:55:14 +0000 (01:55 +0100)]
(Merge 3.4) 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:34:03 +0000 (01:34 +0200)]
Fixed bytes warnings when run tests with -vv.

9 years agoFixed using deprecated escaping in regular expression in _strptime.py (issue23622).
Serhiy Storchaka [Tue, 24 Mar 2015 23:21:50 +0000 (01:21 +0200)]
Fixed using deprecated escaping in regular expression in _strptime.py (issue23622).

9 years agoIssue #21802: The reader in BufferedRWPair now is closed even when closing
Serhiy Storchaka [Tue, 24 Mar 2015 21:23:28 +0000 (23:23 +0200)]
Issue #21802: The reader in BufferedRWPair now is closed even when closing
writer failed in BufferedRWPair.close().

9 years agoIssue #23622: Unknown escapes in regular expressions that consist of ``'\'``
Serhiy Storchaka [Tue, 24 Mar 2015 20:58:14 +0000 (22:58 +0200)]
Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
and ASCII letter now raise a deprecation warning and will be forbidden in
Python 3.6.

9 years agoIssue #4727: Fixed issue number in Misc/NEWS.
Serhiy Storchaka [Tue, 24 Mar 2015 20:37:08 +0000 (22:37 +0200)]
Issue #4727: Fixed issue number in Misc/NEWS.

9 years agoIssue #23671: string.Template now allows to specify the "self" parameter as
Serhiy Storchaka [Tue, 24 Mar 2015 20:30:46 +0000 (22:30 +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 agoIssue #23573: Increased performance of string search operations (str.find,
Serhiy Storchaka [Tue, 24 Mar 2015 19:55:47 +0000 (21:55 +0200)]
Issue #23573: Increased performance of string search operations (str.find,
str.index, str.count, the in operator, str.split, str.partition) with
arguments of different kinds (UCS1, UCS2, UCS4).

9 years agoAdded tests for mixed kinds of Unicode strings.
Serhiy Storchaka [Tue, 24 Mar 2015 19:49:53 +0000 (21:49 +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:49:23 +0000 (19:49 +0200)]
Issue #23583: Added tests for standard IO streams in IDLE.

9 years agoIssue #23502: The pprint module now supports mapping proxies.
Serhiy Storchaka [Tue, 24 Mar 2015 17:31:50 +0000 (19:31 +0200)]
Issue #23502: The pprint module now supports mapping proxies.
In particular the __dict__ attributes of building types.

9 years agoIssue #17530: pprint now wraps long bytes objects and bytearrays.
Serhiy Storchaka [Tue, 24 Mar 2015 17:22:37 +0000 (19:22 +0200)]
Issue #17530: pprint now wraps long bytes objects and bytearrays.

9 years agoIssue #23741: Slightly refactor the pprint module to make it a little more
Serhiy Storchaka [Tue, 24 Mar 2015 16:45:23 +0000 (18:45 +0200)]
Issue #23741: Slightly refactor the pprint module to make it a little more
extesible.  No public API is added.

9 years agoIssue #22687: Fixed some corner cases in breaking words in tetxtwrap.
Serhiy Storchaka [Tue, 24 Mar 2015 16:32:27 +0000 (18:32 +0200)]
Issue #22687: Fixed some corner cases in breaking words in tetxtwrap.
Got rid of quadratic complexity in breaking long words.

9 years agochange Σ to ν for obscure joke reasons
Benjamin Peterson [Tue, 24 Mar 2015 16:12:44 +0000 (12:12 -0400)]
change Σ to ν for obscure joke reasons

https://twitter.com/ncoghlan_dev/status/579173053793353728

9 years agoIssue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and
Serhiy Storchaka [Tue, 24 Mar 2015 16:06:42 +0000 (18:06 +0200)]
Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and
supports copying of instances of classes whose __new__ method takes
keyword-only arguments.

9 years agoIssue #23571: Enhance _Py_CheckFunctionResult()
Victor Stinner [Tue, 24 Mar 2015 15:28:52 +0000 (16:28 +0100)]
Issue #23571: Enhance _Py_CheckFunctionResult()

Too bad, sometimes Py_FatalError() is unable to write the exception into
sys.stderr (on "AMD64 OpenIndiana 3.x" buildbot, the buildbot was probably out
of memory).

Call Py_FatalError() with a different message for the two cases (result+error,
or no result and no error).

9 years agoIssue #23571: Update test_capi
Victor Stinner [Tue, 24 Mar 2015 13:01:32 +0000 (14:01 +0100)]
Issue #23571: Update test_capi

9 years ago(Merge 3.4) Issue #23571: Py_FatalError() now tries to flush sys.stdout and
Victor Stinner [Tue, 24 Mar 2015 12:46:18 +0000 (13:46 +0100)]
(Merge 3.4) 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 agostdprinter_write(): mention the encoding
Victor Stinner [Tue, 24 Mar 2015 12:40:29 +0000 (13:40 +0100)]
stdprinter_write(): mention the encoding

9 years agoIssue #23571: In debug mode, _Py_CheckFunctionResult() now calls
Victor Stinner [Tue, 24 Mar 2015 11:53:59 +0000 (12:53 +0100)]
Issue #23571: In debug mode, _Py_CheckFunctionResult() now calls
Py_FatalError() instead of using an assertion in debug mode. Py_FatalError()
displays the current exception and the traceback which contain more information
than just the assertion error.

9 years agoIssue #23571: PyErr_FormatV() and PyErr_SetObject() now always clear the
Victor Stinner [Tue, 24 Mar 2015 11:41:23 +0000 (12:41 +0100)]
Issue #23571: PyErr_FormatV() and PyErr_SetObject() now always clear the
current exception because they can run arbitrary Python code and so no
exception must be set.

9 years agoIssue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c
Victor Stinner [Tue, 24 Mar 2015 11:16:28 +0000 (12:16 +0100)]
Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c

I expected more users of _Py_wstat(), but in practice it's only used by
Modules/getpath.c. Move the function because it's not needed on Windows.
Windows uses PC/getpathp.c which uses the Win32 API (ex: GetFileAttributesW())
not the POSIX API.

9 years ago(Merge 3.4) Issue #23571: Enhance Py_FatalError()
Victor Stinner [Tue, 24 Mar 2015 11:01:30 +0000 (12:01 +0100)]
(Merge 3.4) 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: merge with 3.4.
Ezio Melotti [Tue, 24 Mar 2015 10:52:13 +0000 (12:52 +0200)]
#11468: merge with 3.4.

9 years agoIssue #23753: Python doesn't support anymore platforms without stat() or
Victor Stinner [Tue, 24 Mar 2015 09:27:50 +0000 (10:27 +0100)]
Issue #23753: Python doesn't support anymore platforms without stat() or
fstat(), these functions are always required.

Remove HAVE_STAT and HAVE_FSTAT defines, and stop supporting DONT_HAVE_STAT and
DONT_HAVE_FSTAT.

9 years agoImprove and fix-up comments.
Raymond Hettinger [Tue, 24 Mar 2015 07:19:53 +0000 (00:19 -0700)]
Improve and fix-up comments.

9 years agoIssue 23744: Minor speed-up for deque.__bool__().
Raymond Hettinger [Tue, 24 Mar 2015 06:23:55 +0000 (23:23 -0700)]
Issue 23744:  Minor speed-up for deque.__bool__().

9 years agoMisc/NEWS entries for zipapp changes
Paul Moore [Mon, 23 Mar 2015 21:40:43 +0000 (21:40 +0000)]
Misc/NEWS entries for zipapp changes

9 years agoMerge 3.4 (faulthandler ICC)
Victor Stinner [Mon, 23 Mar 2015 20:21:00 +0000 (21:21 +0100)]
Merge 3.4 (faulthandler ICC)

9 years agoNull merge
Serhiy Storchaka [Mon, 23 Mar 2015 13:26:49 +0000 (15:26 +0200)]
Null merge

9 years agoIssue #23688: Added support of arbitrary bytes-like objects and avoided
Serhiy Storchaka [Mon, 23 Mar 2015 12:59:48 +0000 (14:59 +0200)]
Issue #23688: Added support of arbitrary bytes-like objects and avoided
unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.

9 years agoIssue #23252: Added support for writing ZIP files to unseekable streams.
Serhiy Storchaka [Sun, 22 Mar 2015 23:09:35 +0000 (01:09 +0200)]
Issue #23252:  Added support for writing ZIP files to unseekable streams.

9 years agoIssue #21526: Tkinter now supports new boolean type in Tcl 8.5.
Serhiy Storchaka [Sun, 22 Mar 2015 22:47:45 +0000 (00:47 +0200)]
Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.

9 years agomerge
Raymond Hettinger [Sun, 22 Mar 2015 22:29:48 +0000 (15:29 -0700)]
merge

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

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

9 years agoMerge: #23700: fix/improve comment
R David Murray [Sun, 22 Mar 2015 16:34:50 +0000 (12:34 -0400)]
Merge: #23700: fix/improve comment

9 years ago#23657 Don't explicitly do an isinstance check for str in zipapp
Paul Moore [Sun, 22 Mar 2015 15:32:36 +0000 (15:32 +0000)]
#23657 Don't explicitly do an isinstance check for str in zipapp

As a result, explicitly support pathlib.Path objects as arguments.
Also added tests for the CLI interface.

9 years agomerge 3.4 (#22933)
Benjamin Peterson [Sun, 22 Mar 2015 14:15:12 +0000 (10:15 -0400)]
merge 3.4 (#22933)

9 years agoIssue #22289: merge from 3.4
Ned Deily [Sun, 22 Mar 2015 08:19:10 +0000 (01:19 -0700)]
Issue #22289: merge from 3.4

9 years agoNull merge
Serhiy Storchaka [Sun, 22 Mar 2015 07:47:20 +0000 (09:47 +0200)]
Null merge

9 years agoIssue #23571: Fix test_capi
Victor Stinner [Sat, 21 Mar 2015 16:24:50 +0000 (17:24 +0100)]
Issue #23571: Fix test_capi

9 years agoIssue #23571: _Py_CheckFunctionResult() now gives the name of the function
Victor Stinner [Sat, 21 Mar 2015 14:04:43 +0000 (15:04 +0100)]
Issue #23571: _Py_CheckFunctionResult() now gives the name of the function
which returned an invalid result (result+error or no result without error) in
the exception message.

Add also unit test to check that the exception contains the name of the
function.

Special case: the final _PyEval_EvalFrameEx() check doesn't mention the
function since it didn't execute a single function but a whole frame.

9 years agoMinor nit. Make the rotate() success/fail tests consistent.
Raymond Hettinger [Sat, 21 Mar 2015 09:03:40 +0000 (02:03 -0700)]
Minor nit.  Make the rotate() success/fail tests consistent.

9 years agoFor safety, wait to decref deleted values until the deque state has been restored.
Raymond Hettinger [Sat, 21 Mar 2015 08:53:16 +0000 (01:53 -0700)]
For safety, wait to decref deleted values until the deque state has been restored.

9 years agoFix minor formatting nits and remove unnecessary comment.
Raymond Hettinger [Sat, 21 Mar 2015 08:42:10 +0000 (01:42 -0700)]
Fix minor formatting nits and remove unnecessary comment.

9 years agoIssue 23704: Add index(), copy(), and insert() to deques. Register deques as a...
Raymond Hettinger [Sat, 21 Mar 2015 08:37:37 +0000 (01:37 -0700)]
Issue 23704:  Add index(), copy(), and insert() to deques.  Register deques as a MutableSequence.

9 years agoIssue #22351: The nntplib.NNTP constructor no longer leaves the connection
Serhiy Storchaka [Sat, 21 Mar 2015 07:41:19 +0000 (09:41 +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 agoRemoved trailing tabs.
Serhiy Storchaka [Sat, 21 Mar 2015 07:25:53 +0000 (09:25 +0200)]
Removed trailing tabs.

9 years agoUpdate Wix version and fixes wxs file.
Steve Dower [Sat, 21 Mar 2015 05:05:33 +0000 (22:05 -0700)]
Update Wix version and fixes wxs file.

9 years agoIssue 23705: Improve the performance of __contains__ checks for deques.
Raymond Hettinger [Fri, 20 Mar 2015 23:38:56 +0000 (16:38 -0700)]
Issue 23705:  Improve the performance of __contains__ checks for deques.

9 years agoIssue #22832: Tweaked parameter names for fcntl module to better match
Serhiy Storchaka [Fri, 20 Mar 2015 18:04:21 +0000 (20:04 +0200)]
Issue #22832: Tweaked parameter names for fcntl module to better match
official POSIX documentation.  Updated the documenttion for Python 3.
Patch by Alex Shkop.

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

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 #22181: Run "aclocal; autoconf; autoheader" to regenerate configure
Victor Stinner [Fri, 20 Mar 2015 15:03:14 +0000 (16:03 +0100)]
Issue #22181: Run "aclocal; autoconf; autoheader" to regenerate configure

9 years agoIssue #23681: The -b option now affects comparisons of bytes with int.
Serhiy Storchaka [Fri, 20 Mar 2015 14:54:57 +0000 (16:54 +0200)]
Issue #23681: The -b option now affects comparisons of bytes with int.

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