summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixes cast warning in bufferedio.cSteve Dower2015-05-231-1/+1
|
* Issue #24269: Minor doc fixups.Raymond Hettinger2015-05-231-5/+6
|
* merge 3.4 (#22931)Benjamin Peterson2015-05-233-3/+19
|\
| * merge 3.3 (#22931)Benjamin Peterson2015-05-233-3/+19
| |\
| | * merge 3.2 (#22931)Benjamin Peterson2015-05-233-3/+19
| | |\
| | | * allow square brackets in cookie values (closes #22931)Benjamin Peterson2015-05-233-3/+23
| | | |
* | | | Issue #24268: Address some PEP 489 refleaksNick Coghlan2015-05-233-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - missing DECREF in PyModule_FromDefAndSpec2 - missing DECREF in PyType_FromSpecAndBases2 - missing DECREF in _testmultiphase module Patch by Petr Viktorin
* | | | PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-2334-3113/+4451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Issue #23086: Add start and stop arguments to the Sequence.index() mixin method.Raymond Hettinger2015-05-235-5/+69
| | | |
* | | | Merge 3.4 into default, upgrading pip to 7.0.1Donald Stufft2015-05-232-1/+1
|\ \ \ \ | |/ / /
| * | | Upgrade pip to 7.0.1Donald Stufft2015-05-232-1/+1
| | | |
* | | | Issue #21448: Improve performance of the email feedparserRaymond Hettinger2015-05-231-8/+8
| | | |
* | | | Issue 22189: Add missing methods to UserStringRaymond Hettinger2015-05-223-2/+37
| | | |
* | | | mergeRaymond Hettinger2015-05-221-2/+1
|\ \ \ \ | |/ / /
| * | | Issue #24219: Remove duplicate literal in docs.Raymond Hettinger2015-05-221-2/+1
| | | |
* | | | Removes lingering references to RAR now that make_zip.py actually makes a ZIPSteve Dower2015-05-221-3/+0
| | | |
* | | | Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dirGregory P. Smith2015-05-225-50/+281
| | | | | | | | | | | | | | | | parameters and returns bytes in such situations (matching the os module APIs).
* | | | Issue #23955: Add pyvenv.cfg option to suppress registry/environment lookup ↵Steve Dower2015-05-224-78/+127
| | | | | | | | | | | | | | | | | | | | | | | | for generating sys.path. Also cleans up and secures getpathp.c
* | | | Issue 24244: Prevents termination when an invalid format string is ↵Steve Dower2015-05-222-7/+5
| | | | | | | | | | | | | | | | encountered on Windows.
* | | | Issue 20438: Add a note about deprecating old inspect APIs to whatsnew.Yury Selivanov2015-05-222-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Issue 20438: Adjust stacklevel of inspect.getargspec() warning.Yury Selivanov2015-05-221-1/+2
| | | |
* | | | Preliminary typing.py, anticipating provisional acceptance of PEP 484.Guido van Rossum2015-05-224-0/+3104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Fix extraneous BOM in whatsnew.Zachary Ware2015-05-221-1/+1
| | | | | | | | | | | | | | | | That's what I get for using Notepad to make a quick edit...
* | | | Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-2212-99/+134
| | | | | | | | | | | | | | | | | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms.
* | | | Issue 20438: Deprecate inspect.getargspec() and friends.Yury Selivanov2015-05-223-8/+13
| | | |
* | | | docs: Mention PEP 479 in whatsnew.Yury Selivanov2015-05-221-0/+21
| | | | | | | | | | | | | | | | Issue 22906.
* | | | Issue 24237: Raise PendingDeprecationWarning per PEP 479Yury Selivanov2015-05-225-29/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-226-8/+36
|\ \ \ \ | |/ / / | | | | | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
| * | | Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-226-8/+36
| | | | | | | | | | | | | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
* | | | Issue #24221: Small optimizations for heapq.Raymond Hettinger2015-05-222-37/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | merge: Upgrade pip to 7.0 and setuptools to 16.0Donald Stufft2015-05-223-2/+2
|\ \ \ \ | |/ / /
| * | | Upgrade pip to 7.0 and setuptools to 16.0Donald Stufft2015-05-223-2/+2
| | | |
* | | | Issue 24180: Fixes by Berker Peksag.Yury Selivanov2015-05-214-23/+7
| | | |
* | | | Set stacklevel to 2 to get more accurate warning messages from deprecated ↵Berker Peksag2015-05-211-2/+4
| | | | | | | | | | | | | | | | functions.
* | | | Fix a misplaced NEWS entry.Yury Selivanov2015-05-211-3/+3
| | | |
* | | | Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__Yury Selivanov2015-05-213-3/+21
|\ \ \ \ | |/ / / | | | | | | | | Patch by Mike Bayer.
| * | | Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__Yury Selivanov2015-05-213-3/+21
| | | |
* | | | Fixed issue number for issue #22939.Serhiy Storchaka2015-05-211-1/+1
|\ \ \ \ | |/ / /
| * | | Fixed issue number for issue #22939.Serhiy Storchaka2015-05-211-1/+1
| | | |
* | | | Issue #23985: Fixed integer overflow in iterator object. Patch bySerhiy Storchaka2015-05-213-0/+33
|\ \ \ \ | |/ / / | | | | | | | | Clement Rouault.
| * | | Issue #23985: Fixed integer overflow in iterator object. Patch bySerhiy Storchaka2015-05-214-0/+34
| | | | | | | | | | | | | | | | Clement Rouault.
* | | | Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() andSerhiy Storchaka2015-05-215-1/+74
| | | | | | | | | | | | | | | | | | | | assertWarnsRegex() assertments now check the type of the first argument to prevent possible user error. Based on patch by Daniel Wagner-Hall.
* | | | Issue 24017: Use abc.Coroutine in inspect.iscoroutine() functionYury Selivanov2015-05-211-2/+1
| | | |
* | | | Issue 24180: Documentation for PEP 492 changes.Yury Selivanov2015-05-2111-8/+483
| | | |
* | | | Issue #22955: Fixed reference leak in attrgetter.repr().Serhiy Storchaka2015-05-211-1/+3
| | | |
* | | | improve wordingBenjamin Peterson2015-05-211-2/+2
| | | |
* | | | Issue 24248: Deprecate inspect.Signature.from_function and .from_builtinYury Selivanov2015-05-214-12/+16
| | | |
* | | | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵Antoine Pitrou2015-05-204-2/+22
| | | | | | | | | | | | | | | | Rupprecht.
* | | | Issue #22955: Fixed test_operator. It left Python implementation inSerhiy Storchaka2015-05-201-4/+0
| | | | | | | | | | | | | | | | sys.modules and broke test_ipaddress.
* | | | inspect.Signature: Factor out Signature.from_function to a private helperYury Selivanov2015-05-201-78/+83
| | | |