]> granicus.if.org Git - python/log
python
9 years agomerge 3.4
Benjamin Peterson [Wed, 27 May 2015 23:32:41 +0000 (18:32 -0500)]
merge 3.4

9 years agoupdate for 3.6 emerging
Benjamin Peterson [Wed, 27 May 2015 23:32:25 +0000 (18:32 -0500)]
update for 3.6 emerging

9 years agoIssue 24304: Fix broken license link in FAQ.
Ned Deily [Wed, 27 May 2015 22:37:32 +0000 (15:37 -0700)]
Issue 24304: Fix broken license link in FAQ.

9 years agoIssue 24304: Fix broken license link in FAQ.
Ned Deily [Wed, 27 May 2015 22:37:00 +0000 (15:37 -0700)]
Issue 24304: Fix broken license link in FAQ.

9 years agoIssue #24288: Generated opcode.h no longer contains trailing spaces and tabs.
Serhiy Storchaka [Wed, 27 May 2015 18:31:33 +0000 (21:31 +0300)]
Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs.

9 years agoIssue 24297: Update symbol.py. See also issue 24017.
Yury Selivanov [Wed, 27 May 2015 15:08:19 +0000 (11:08 -0400)]
Issue 24297: Update symbol.py. See also issue 24017.

9 years agotarfile.open() with mode 'x' created files without an end of archive marker.
Lars Gustäbel [Wed, 27 May 2015 10:53:44 +0000 (12:53 +0200)]
tarfile.open() with mode 'x' created files without an end of archive marker.

9 years agoIssue #24293: Fixes installer colors to use system settings throughout.
Steve Dower [Wed, 27 May 2015 03:46:11 +0000 (20:46 -0700)]
Issue #24293: Fixes installer colors to use system settings throughout.

9 years agorephrase
Benjamin Peterson [Wed, 27 May 2015 02:40:28 +0000 (21:40 -0500)]
rephrase

9 years agoIssue #24285: fix importing extensions from packages
Nick Coghlan [Tue, 26 May 2015 11:48:17 +0000 (21:48 +1000)]
Issue #24285: fix importing extensions from packages

9 years agoMoved Misc/NEWS entries to correct section and fix formatting.
Serhiy Storchaka [Tue, 26 May 2015 07:25:48 +0000 (10:25 +0300)]
Moved Misc/NEWS entries to correct section and fix formatting.

9 years agoMoved Misc/NEWS entries to correct section and fix formatting.
Serhiy Storchaka [Tue, 26 May 2015 07:20:32 +0000 (10:20 +0300)]
Moved Misc/NEWS entries to correct section and fix formatting.

9 years agomerge 3.4
Benjamin Peterson [Tue, 26 May 2015 02:25:09 +0000 (21:25 -0500)]
merge 3.4

9 years agomerge 3.3
Benjamin Peterson [Tue, 26 May 2015 02:24:48 +0000 (21:24 -0500)]
merge 3.3

9 years agomerge 3.2
Benjamin Peterson [Tue, 26 May 2015 02:24:26 +0000 (21:24 -0500)]
merge 3.2

9 years agokeep distutils version in sync with python version automatically
Benjamin Peterson [Tue, 26 May 2015 02:24:00 +0000 (21:24 -0500)]
keep distutils version in sync with python version automatically

9 years ago(Merge 3.5) Issue #23840: tokenize.open() now closes the temporary binary file
Victor Stinner [Mon, 25 May 2015 22:46:44 +0000 (00:46 +0200)]
(Merge 3.5) Issue #23840: tokenize.open() now closes the temporary binary file
on error to fix a resource warning.

9 years agoIssue #23840: tokenize.open() now closes the temporary binary file on error to
Victor Stinner [Mon, 25 May 2015 22:43:58 +0000 (00:43 +0200)]
Issue #23840: tokenize.open() now closes the temporary binary file on error to
fix a resource warning.

9 years agoRemove UTF-8 BOMs.
Serhiy Storchaka [Mon, 25 May 2015 09:29:53 +0000 (12:29 +0300)]
Remove UTF-8 BOMs.

9 years agoRemove UTF-8 BOMs.
Serhiy Storchaka [Mon, 25 May 2015 09:27:39 +0000 (12:27 +0300)]
Remove UTF-8 BOMs.

9 years agoCreate 3.5 branch.
Larry Hastings [Sun, 24 May 2015 23:42:42 +0000 (16:42 -0700)]
Create 3.5 branch.

9 years agoMerge.
Larry Hastings [Sun, 24 May 2015 23:41:42 +0000 (16:41 -0700)]
Merge.

9 years agoPost-release fixes for 3.5.0b1.
Larry Hastings [Sun, 24 May 2015 23:40:45 +0000 (16:40 -0700)]
Post-release fixes for 3.5.0b1.

9 years agoBacked out changeset: b0a0b9b59012
Serhiy Storchaka [Sun, 24 May 2015 18:53:49 +0000 (21:53 +0300)]
Backed out changeset: b0a0b9b59012

9 years agoIssue #24276: Fixed optimization of property descriptor getter.
Serhiy Storchaka [Sun, 24 May 2015 18:38:06 +0000 (21:38 +0300)]
Issue #24276: Fixed optimization of property descriptor getter.

9 years agoExclude _testmultiphase.pyd from embeddable ZIP file.
Steve Dower [Sun, 24 May 2015 01:08:55 +0000 (18:08 -0700)]
Exclude _testmultiphase.pyd from embeddable ZIP file.

9 years agoPrevents attempt to sign ZIP file when building embeddable version.
Steve Dower [Sun, 24 May 2015 00:52:20 +0000 (17:52 -0700)]
Prevents attempt to sign ZIP file when building embeddable version.

9 years agoIssue #24268: Adds PCBuild project to build _testmultiphase module.
Steve Dower [Sun, 24 May 2015 00:51:54 +0000 (17:51 -0700)]
Issue #24268: Adds PCBuild project to build _testmultiphase module.

9 years agoAdded tag v3.5.0b1 for changeset 071fefbb5e3d
Larry Hastings [Sun, 24 May 2015 00:43:19 +0000 (17:43 -0700)]
Added tag v3.5.0b1 for changeset 071fefbb5e3d

9 years agoVersion bump for 3.5.0b1. v3.5.0b1
Larry Hastings [Sun, 24 May 2015 00:43:05 +0000 (17:43 -0700)]
Version bump for 3.5.0b1.

9 years agoUpdate SOURCE_URI to reflect that we're branching 3.5 now.
Larry Hastings [Sun, 24 May 2015 00:41:13 +0000 (17:41 -0700)]
Update SOURCE_URI to reflect that we're branching 3.5 now.

9 years agoUpdated topics (and susp-ignored) for Python 3.5.0b1.
Larry Hastings [Sun, 24 May 2015 00:39:42 +0000 (17:39 -0700)]
Updated topics (and susp-ignored) for Python 3.5.0b1.

9 years agoFixes handling of long values of PYTHONPATH on Windows.
Steve Dower [Sun, 24 May 2015 00:34:50 +0000 (17:34 -0700)]
Fixes handling of long values of PYTHONPATH on Windows.

9 years agoFix bad indent in whatsnew/3.5.rst.
Guido van Rossum [Sat, 23 May 2015 22:27:51 +0000 (15:27 -0700)]
Fix bad indent in whatsnew/3.5.rst.

9 years agoAdd pointer to IDLE what's new file.
Terry Jan Reedy [Sat, 23 May 2015 22:19:42 +0000 (18:19 -0400)]
Add pointer to IDLE what's new file.

9 years agoMerge with 3.4
Terry Jan Reedy [Sat, 23 May 2015 22:15:41 +0000 (18:15 -0400)]
Merge with 3.4

9 years agowhitespace
Terry Jan Reedy [Sat, 23 May 2015 22:15:18 +0000 (18:15 -0400)]
whitespace

9 years agoMerge with 3.4
Terry Jan Reedy [Sat, 23 May 2015 22:13:31 +0000 (18:13 -0400)]
Merge with 3.4

9 years agoAdd pointer to IDLE what's new file.
Terry Jan Reedy [Sat, 23 May 2015 22:13:14 +0000 (18:13 -0400)]
Add pointer to IDLE what's new file.

9 years agoMerge backout of 57776eee74f2.
Larry Hastings [Sat, 23 May 2015 21:57:12 +0000 (14:57 -0700)]
Merge backout of 57776eee74f2.

9 years agoBacked out changeset 57776eee74f2
Larry Hastings [Sat, 23 May 2015 21:56:23 +0000 (14:56 -0700)]
Backed out changeset 57776eee74f2

9 years agoIssue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)
Steve Dower [Sat, 23 May 2015 21:44:37 +0000 (14:44 -0700)]
Issue #24268: Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)

9 years agoFix Sphinx warnings.
Berker Peksag [Sat, 23 May 2015 21:26:05 +0000 (00:26 +0300)]
Fix Sphinx warnings.

9 years agoUpdate idlelib/NEWS.txt
Terry Jan Reedy [Sat, 23 May 2015 21:24:22 +0000 (17:24 -0400)]
Update idlelib/NEWS.txt

9 years agoUpdate idlelib/NEWS.txt.
Terry Jan Reedy [Sat, 23 May 2015 21:23:30 +0000 (17:23 -0400)]
Update idlelib/NEWS.txt.

9 years agomerge
Terry Jan Reedy [Sat, 23 May 2015 21:18:40 +0000 (17:18 -0400)]
merge

9 years agoAdd Idle NEWS item.
Terry Jan Reedy [Sat, 23 May 2015 21:14:09 +0000 (17:14 -0400)]
Add Idle NEWS item.

9 years agoIssue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.
Steve Dower [Sat, 23 May 2015 21:13:41 +0000 (14:13 -0700)]
Issue #24268: Fix import naming when loading extension modules. Patch by Petr Viktorin.

9 years agoAdd NEWS item for Idle.
Terry Jan Reedy [Sat, 23 May 2015 21:12:48 +0000 (17:12 -0400)]
Add NEWS item for Idle.

9 years agoMerge with 3.4
Terry Jan Reedy [Sat, 23 May 2015 20:16:46 +0000 (16:16 -0400)]
Merge with 3.4

9 years agoMake expression legal python by adding '1'.
Terry Jan Reedy [Sat, 23 May 2015 20:16:28 +0000 (16:16 -0400)]
Make expression legal python by adding '1'.

9 years agoIssue #14373: Added C implementation of functools.lru_cache(). Based on
Serhiy Storchaka [Sat, 23 May 2015 19:42:49 +0000 (22:42 +0300)]
Issue #14373: Added C implementation of functools.lru_cache().  Based on
patches by Matt Joiner and Alexey Kachayev.

9 years agoIssue #23970: Fixes bdist_wininst not working on non-Windows platform.
Steve Dower [Sat, 23 May 2015 19:15:57 +0000 (12:15 -0700)]
Issue #23970: Fixes bdist_wininst not working on non-Windows platform.

9 years agoIssue #24204: Elaborate of the str.strip() documentation.
Raymond Hettinger [Sat, 23 May 2015 16:11:55 +0000 (09:11 -0700)]
Issue #24204:  Elaborate of the str.strip() documentation.

9 years agoIssue #23970: Adds distutils._msvccompiler for new Visual Studio versions.
Steve Dower [Sat, 23 May 2015 16:02:50 +0000 (09:02 -0700)]
Issue #23970: Adds distutils._msvccompiler for new Visual Studio versions.

9 years agoIssue #24268: Fixes generation of init import name on Windows.
Steve Dower [Sat, 23 May 2015 15:59:25 +0000 (08:59 -0700)]
Issue #24268: Fixes generation of init import name on Windows.

9 years agoFixes cast warning in bufferedio.c
Steve Dower [Sat, 23 May 2015 15:59:25 +0000 (08:59 -0700)]
Fixes cast warning in bufferedio.c

9 years agoIssue #24269: Minor doc fixups.
Raymond Hettinger [Sat, 23 May 2015 15:57:58 +0000 (08:57 -0700)]
Issue #24269: Minor doc fixups.

9 years agomerge 3.4 (#22931)
Benjamin Peterson [Sat, 23 May 2015 15:41:30 +0000 (10:41 -0500)]
merge 3.4 (#22931)

9 years agomerge 3.3 (#22931)
Benjamin Peterson [Sat, 23 May 2015 15:40:47 +0000 (10:40 -0500)]
merge 3.3 (#22931)

9 years agomerge 3.2 (#22931)
Benjamin Peterson [Sat, 23 May 2015 15:38:48 +0000 (10:38 -0500)]
merge 3.2 (#22931)

9 years agoallow square brackets in cookie values (closes #22931)
Benjamin Peterson [Sat, 23 May 2015 15:36:48 +0000 (10:36 -0500)]
allow square brackets in cookie values (closes #22931)

9 years agoIssue #24268: Address some PEP 489 refleaks
Nick Coghlan [Sat, 23 May 2015 15:03:46 +0000 (01:03 +1000)]
Issue #24268: Address some PEP 489 refleaks

- missing DECREF in PyModule_FromDefAndSpec2
- missing DECREF in PyType_FromSpecAndBases2
- missing DECREF in _testmultiphase module

Patch by Petr Viktorin

9 years agoPEP 489: Multi-phase extension module initialization
Nick Coghlan [Sat, 23 May 2015 12:24:10 +0000 (22:24 +1000)]
PEP 489: Multi-phase extension module initialization

Known limitations of the current implementation:

- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet

The leak is most visible by running:

  ./python -m test -R3:3 test_importlib

However, you can also see it by running:

  ./python -X showrefcount

Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.

9 years agoIssue #23086: Add start and stop arguments to the Sequence.index() mixin method.
Raymond Hettinger [Sat, 23 May 2015 02:29:22 +0000 (19:29 -0700)]
Issue #23086: Add start and stop arguments to the Sequence.index() mixin method.

9 years agoMerge 3.4 into default, upgrading pip to 7.0.1
Donald Stufft [Sat, 23 May 2015 00:30:57 +0000 (20:30 -0400)]
Merge 3.4 into default, upgrading pip to 7.0.1

9 years agoUpgrade pip to 7.0.1
Donald Stufft [Sat, 23 May 2015 00:30:16 +0000 (20:30 -0400)]
Upgrade pip to 7.0.1

9 years agoIssue #21448: Improve performance of the email feedparser
Raymond Hettinger [Sat, 23 May 2015 00:23:28 +0000 (17:23 -0700)]
Issue #21448: Improve performance of      the email feedparser

9 years agoIssue 22189: Add missing methods to UserString
Raymond Hettinger [Fri, 22 May 2015 23:56:32 +0000 (16:56 -0700)]
Issue 22189:  Add missing methods to UserString

9 years agomerge
Raymond Hettinger [Fri, 22 May 2015 23:38:16 +0000 (16:38 -0700)]
merge

9 years agoIssue #24219: Remove duplicate literal in docs.
Raymond Hettinger [Fri, 22 May 2015 23:37:49 +0000 (16:37 -0700)]
Issue #24219: Remove duplicate literal in docs.

9 years agoRemoves lingering references to RAR now that make_zip.py actually makes a ZIP
Steve Dower [Fri, 22 May 2015 23:22:27 +0000 (16:22 -0700)]
Removes lingering references to RAR now that make_zip.py actually makes a ZIP

9 years agoIssue 24230: The tempfile module now accepts bytes for prefix, suffix and dir
Gregory P. Smith [Fri, 22 May 2015 23:18:14 +0000 (16:18 -0700)]
Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dir
parameters and returns bytes in such situations (matching the os module APIs).

9 years agoIssue #23955: Add pyvenv.cfg option to suppress registry/environment lookup for gener...
Steve Dower [Fri, 22 May 2015 22:10:10 +0000 (15:10 -0700)]
Issue #23955: Add pyvenv.cfg option to suppress registry/environment lookup for generating sys.path.
Also cleans up and secures getpathp.c

9 years agoIssue 24244: Prevents termination when an invalid format string is encountered on...
Steve Dower [Fri, 22 May 2015 22:08:34 +0000 (15:08 -0700)]
Issue 24244: Prevents termination when an invalid format string is encountered on Windows.

9 years agoIssue 20438: Add a note about deprecating old inspect APIs to whatsnew.
Yury Selivanov [Fri, 22 May 2015 20:28:05 +0000 (16:28 -0400)]
Issue 20438: Add a note about deprecating old inspect APIs to whatsnew.

Also, deprecate formatargspec, formatargvalues, and getargvalues
functions.  Since we are deprecating 'getfullargspec' function in
3.5 (documentation only, no DeprecationWarning), it makes sense
to also deprecate functions designed to be directly used with it.

In 3.6 we will remove 'getargsspec' function (was deprecated since
Python 3.0), and start raising DeprecationWarnings in other
'getarg*' family of functions.  We can remove them in 3.7 or later.

Also, it is worth noting, that Signature API does not provide 100%
of functionality that deprecated APIs have.  It is important to do
a soft deprecation of outdated APIs in 3.5 to gather users feedback,
and improve Signature object.

9 years agoIssue 20438: Adjust stacklevel of inspect.getargspec() warning.
Yury Selivanov [Fri, 22 May 2015 20:09:44 +0000 (16:09 -0400)]
Issue 20438: Adjust stacklevel of inspect.getargspec() warning.

9 years agoPreliminary typing.py, anticipating provisional acceptance of PEP 484.
Guido van Rossum [Fri, 22 May 2015 17:14:11 +0000 (10:14 -0700)]
Preliminary typing.py, anticipating provisional acceptance of PEP 484.

There area bunch of TODOs here, but the biggest (not mentioned in the
file) is that I'm going to take out __instancecheck__ and
__subclasscheck__.  However my personal schedule is such that I
probably won't have time for these before Larry tags beta 1.  But I
will try -- this commit is mostly to make sure that typing.py doesn't
completely miss the train.

PS. I'm tracking issues at https://github.com/ambv/typehinting/issues.

9 years agoFix extraneous BOM in whatsnew.
Zachary Ware [Fri, 22 May 2015 16:42:20 +0000 (11:42 -0500)]
Fix extraneous BOM in whatsnew.

That's what I get for using Notepad to make a quick edit...

9 years agoIssue #20035: Reimplement tkinter._fix module as a C function.
Zachary Ware [Fri, 22 May 2015 16:36:53 +0000 (11:36 -0500)]
Issue #20035: Reimplement tkinter._fix module as a C function.

The new private C function makes no permanent changes to the environment
and is #ifdef'd out on non-Windows platforms.

9 years agoIssue 20438: Deprecate inspect.getargspec() and friends.
Yury Selivanov [Fri, 22 May 2015 15:38:38 +0000 (11:38 -0400)]
Issue 20438: Deprecate inspect.getargspec() and friends.

9 years agodocs: Mention PEP 479 in whatsnew.
Yury Selivanov [Fri, 22 May 2015 15:30:45 +0000 (11:30 -0400)]
docs: Mention PEP 479 in whatsnew.

Issue 22906.

9 years agoIssue 24237: Raise PendingDeprecationWarning per PEP 479
Yury Selivanov [Fri, 22 May 2015 15:16:47 +0000 (11:16 -0400)]
Issue 24237: Raise PendingDeprecationWarning per PEP 479

Raise PendingDeprecationWarning when generator raises StopIteration
and no __future__ import is used.  Fix offenders in the stdlib
and tests.

See also issue 22906.
Thanks to Nick Coghlan and Berker Peksag for reviews.

9 years agoIssue #24257: Fixed incorrect uses of PyObject_IsInstance().
Serhiy Storchaka [Fri, 22 May 2015 08:13:20 +0000 (11:13 +0300)]
Issue #24257: Fixed incorrect uses of PyObject_IsInstance().
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.

9 years agoIssue #24257: Fixed incorrect uses of PyObject_IsInstance().
Serhiy Storchaka [Fri, 22 May 2015 08:02:49 +0000 (11:02 +0300)]
Issue #24257: Fixed incorrect uses of PyObject_IsInstance().
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.

9 years agoIssue #24221: Small optimizations for heapq.
Raymond Hettinger [Fri, 22 May 2015 07:41:57 +0000 (00:41 -0700)]
Issue #24221:  Small optimizations for heapq.

Replaces the PyList_GET_ITEM and PyList_SET_ITEM macros with normal array
accesses.  Replace the siftup unpredicatable branch with arithmetic.
Replace the rc == -1 tests with rc < 0.  Gives nicer looking assembly
with both Clang and GCC-4.9.  Also gives a small performance both for both.

9 years agomerge: Upgrade pip to 7.0 and setuptools to 16.0
Donald Stufft [Fri, 22 May 2015 04:39:57 +0000 (00:39 -0400)]
merge: Upgrade pip to 7.0 and setuptools to 16.0

9 years agoUpgrade pip to 7.0 and setuptools to 16.0
Donald Stufft [Fri, 22 May 2015 04:39:22 +0000 (00:39 -0400)]
Upgrade pip to 7.0 and setuptools to 16.0

9 years agoIssue 24180: Fixes by Berker Peksag.
Yury Selivanov [Thu, 21 May 2015 21:02:31 +0000 (17:02 -0400)]
Issue 24180: Fixes by Berker Peksag.

9 years agoSet stacklevel to 2 to get more accurate warning messages from deprecated functions.
Berker Peksag [Thu, 21 May 2015 20:40:54 +0000 (23:40 +0300)]
Set stacklevel to 2 to get more accurate warning messages from deprecated functions.

9 years agoFix a misplaced NEWS entry.
Yury Selivanov [Thu, 21 May 2015 19:48:59 +0000 (15:48 -0400)]
Fix a misplaced NEWS entry.

9 years agoIssue 23898: Fix inspect.classify_class_attrs() to work with __eq__
Yury Selivanov [Thu, 21 May 2015 19:45:08 +0000 (15:45 -0400)]
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__

Patch by Mike Bayer.

9 years agoIssue 23898: Fix inspect.classify_class_attrs() to work with __eq__
Yury Selivanov [Thu, 21 May 2015 19:41:57 +0000 (15:41 -0400)]
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__

9 years agoFixed issue number for issue #22939.
Serhiy Storchaka [Thu, 21 May 2015 17:54:48 +0000 (20:54 +0300)]
Fixed issue number for issue #22939.

9 years agoFixed issue number for issue #22939.
Serhiy Storchaka [Thu, 21 May 2015 17:54:36 +0000 (20:54 +0300)]
Fixed issue number for issue #22939.

9 years agoIssue #23985: Fixed integer overflow in iterator object. Patch by
Serhiy Storchaka [Thu, 21 May 2015 17:51:53 +0000 (20:51 +0300)]
Issue #23985: Fixed integer overflow in iterator object.  Patch by
Clement Rouault.

9 years agoIssue #23985: Fixed integer overflow in iterator object. Patch by
Serhiy Storchaka [Thu, 21 May 2015 17:50:25 +0000 (20:50 +0300)]
Issue #23985: Fixed integer overflow in iterator object.  Patch by
Clement Rouault.

9 years agoIssue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and
Serhiy Storchaka [Thu, 21 May 2015 17:15:40 +0000 (20:15 +0300)]
Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and
assertWarnsRegex() assertments now check the type of the first argument
to prevent possible user error.  Based on patch by Daniel Wagner-Hall.

9 years agoIssue 24017: Use abc.Coroutine in inspect.iscoroutine() function
Yury Selivanov [Thu, 21 May 2015 16:03:21 +0000 (12:03 -0400)]
Issue 24017: Use abc.Coroutine in inspect.iscoroutine() function

9 years agoIssue 24180: Documentation for PEP 492 changes.
Yury Selivanov [Thu, 21 May 2015 15:50:30 +0000 (11:50 -0400)]
Issue 24180: Documentation for PEP 492 changes.