summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
| | | |
* | | | Issue 20691: Add follow_wrapped arg to inspect.signature/from_callable.Yury Selivanov2015-05-205-10/+36
| | | |
* | | | Issue 24215: Added tests for more builtin types in test_pprint.Serhiy Storchaka2015-05-202-17/+12
|\ \ \ \ | |/ / / | | | | | | | | Made test_pprint and test_trace discoverable.
| * | | Issue 24215: Added tests for more builtin types in test_pprint.Serhiy Storchaka2015-05-202-17/+12
| | | | | | | | | | | | | | | | Made test_pprint and test_trace discoverable.
* | | | Updates PCBuild.sln to open with VS 2015 by default.Steve Dower2015-05-201-2/+2
| | | |
* | | | Issue #24134: Use assertRaises() in context manager form in test_slice toSerhiy Storchaka2015-05-201-1/+2
|\ \ \ \ | |/ / / | | | | | | | | avoid passing the test accidently because slice.__hash__ is None.
| * | | Issue #24134: Use assertRaises() in context manager form in test_slice toSerhiy Storchaka2015-05-201-1/+2
| | | | | | | | | | | | | | | | avoid passing the test accidently because slice.__hash__ is None.
* | | | Issue #22955: attrgetter, itemgetter and methodcaller objects in the operatorSerhiy Storchaka2015-05-204-9/+427
| | | | | | | | | | | | | | | | | | | | module now support pickling. Added readable and evaluable repr for these objects. Based on patch by Josh Rosenberg.
* | | | Issue #24245: Eliminated senseless expect clauses that have no any effect inSerhiy Storchaka2015-05-202-19/+12
|\ \ \ \ | |/ / / | | | | | | | | IDLE. Patch by Martin Panter.
| * | | Issue #24245: Eliminated senseless expect clauses that have no any effect inSerhiy Storchaka2015-05-202-19/+12
| | | | | | | | | | | | | | | | IDLE. Patch by Martin Panter.
* | | | Issue #24245: Eliminated senseless expect clauses that have no any effect.Serhiy Storchaka2015-05-205-14/+0
| | | | | | | | | | | | | | | | Patch by Martin Panter.
* | | | Issue #16261: Converted some bare except statements to except statementsSerhiy Storchaka2015-05-207-13/+13
| | | | | | | | | | | | | | | | with specified exception type. Original patch by Ramchandra Apte.
* | | | Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try againSerhiy Storchaka2015-05-193-7/+63
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | when a directory with the chosen name already exists on Windows as well as on Unix. tempfile.mkstemp() now fails early if parent directory is not valid (not exists or is a file) on Windows.
| * | | Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try againSerhiy Storchaka2015-05-193-7/+63
| | | | | | | | | | | | | | | | | | | | | | | | when a directory with the chosen name already exists on Windows as well as on Unix. tempfile.mkstemp() now fails early if parent directory is not valid (not exists or is a file) on Windows.
* | | | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).Antoine Pitrou2015-05-191-3/+3
|\ \ \ \ | |/ / /
| * | | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).Antoine Pitrou2015-05-191-17/+17
| | | |
* | | | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵Antoine Pitrou2015-05-193-6/+21
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter.
| * | | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵Antoine Pitrou2015-05-193-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter.
* | | | Null merge.R David Murray2015-05-190-0/+0
|\ \ \ \ | |/ / /