Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | Issue 24244: Prevents termination when an invalid format string is ↵ | Steve Dower | 2015-05-22 | 2 | -7/+5 | |
| | | | | | | | | | | | | | | | | encountered on Windows. | |||||
* | | | | Issue 20438: Add a note about deprecating old inspect APIs to whatsnew. | Yury Selivanov | 2015-05-22 | 2 | -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 Selivanov | 2015-05-22 | 1 | -1/+2 | |
| | | | | ||||||
* | | | | Preliminary typing.py, anticipating provisional acceptance of PEP 484. | Guido van Rossum | 2015-05-22 | 4 | -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 Ware | 2015-05-22 | 1 | -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 Ware | 2015-05-22 | 12 | -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 Selivanov | 2015-05-22 | 3 | -8/+13 | |
| | | | | ||||||
* | | | | docs: Mention PEP 479 in whatsnew. | Yury Selivanov | 2015-05-22 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | | | Issue 22906. | |||||
* | | | | Issue 24237: Raise PendingDeprecationWarning per PEP 479 | Yury Selivanov | 2015-05-22 | 5 | -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 Storchaka | 2015-05-22 | 6 | -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 Storchaka | 2015-05-22 | 6 | -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 Hettinger | 2015-05-22 | 2 | -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.0 | Donald Stufft | 2015-05-22 | 3 | -2/+2 | |
|\ \ \ \ | |/ / / | ||||||
| * | | | Upgrade pip to 7.0 and setuptools to 16.0 | Donald Stufft | 2015-05-22 | 3 | -2/+2 | |
| | | | | ||||||
* | | | | Issue 24180: Fixes by Berker Peksag. | Yury Selivanov | 2015-05-21 | 4 | -23/+7 | |
| | | | | ||||||
* | | | | Set stacklevel to 2 to get more accurate warning messages from deprecated ↵ | Berker Peksag | 2015-05-21 | 1 | -2/+4 | |
| | | | | | | | | | | | | | | | | functions. | |||||
* | | | | Fix a misplaced NEWS entry. | Yury Selivanov | 2015-05-21 | 1 | -3/+3 | |
| | | | | ||||||
* | | | | Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__ | Yury Selivanov | 2015-05-21 | 3 | -3/+21 | |
|\ \ \ \ | |/ / / | | | | | | | | | Patch by Mike Bayer. | |||||
| * | | | Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__ | Yury Selivanov | 2015-05-21 | 3 | -3/+21 | |
| | | | | ||||||
* | | | | Fixed issue number for issue #22939. | Serhiy Storchaka | 2015-05-21 | 1 | -1/+1 | |
|\ \ \ \ | |/ / / | ||||||
| * | | | Fixed issue number for issue #22939. | Serhiy Storchaka | 2015-05-21 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Issue #23985: Fixed integer overflow in iterator object. Patch by | Serhiy Storchaka | 2015-05-21 | 3 | -0/+33 | |
|\ \ \ \ | |/ / / | | | | | | | | | Clement Rouault. | |||||
| * | | | Issue #23985: Fixed integer overflow in iterator object. Patch by | Serhiy Storchaka | 2015-05-21 | 4 | -0/+34 | |
| | | | | | | | | | | | | | | | | Clement Rouault. | |||||
* | | | | Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and | Serhiy Storchaka | 2015-05-21 | 5 | -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() function | Yury Selivanov | 2015-05-21 | 1 | -2/+1 | |
| | | | | ||||||
* | | | | Issue 24180: Documentation for PEP 492 changes. | Yury Selivanov | 2015-05-21 | 11 | -8/+483 | |
| | | | | ||||||
* | | | | Issue #22955: Fixed reference leak in attrgetter.repr(). | Serhiy Storchaka | 2015-05-21 | 1 | -1/+3 | |
| | | | | ||||||
* | | | | improve wording | Benjamin Peterson | 2015-05-21 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | Issue 24248: Deprecate inspect.Signature.from_function and .from_builtin | Yury Selivanov | 2015-05-21 | 4 | -12/+16 | |
| | | | | ||||||
* | | | | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵ | Antoine Pitrou | 2015-05-20 | 4 | -2/+22 | |
| | | | | | | | | | | | | | | | | Rupprecht. | |||||
* | | | | Issue #22955: Fixed test_operator. It left Python implementation in | Serhiy Storchaka | 2015-05-20 | 1 | -4/+0 | |
| | | | | | | | | | | | | | | | | sys.modules and broke test_ipaddress. | |||||
* | | | | inspect.Signature: Factor out Signature.from_function to a private helper | Yury Selivanov | 2015-05-20 | 1 | -78/+83 | |
| | | | | ||||||
* | | | | Issue 20691: Add follow_wrapped arg to inspect.signature/from_callable. | Yury Selivanov | 2015-05-20 | 5 | -10/+36 | |
| | | | | ||||||
* | | | | Issue 24215: Added tests for more builtin types in test_pprint. | Serhiy Storchaka | 2015-05-20 | 2 | -17/+12 | |
|\ \ \ \ | |/ / / | | | | | | | | | Made test_pprint and test_trace discoverable. | |||||
| * | | | Issue 24215: Added tests for more builtin types in test_pprint. | Serhiy Storchaka | 2015-05-20 | 2 | -17/+12 | |
| | | | | | | | | | | | | | | | | Made test_pprint and test_trace discoverable. | |||||
* | | | | Updates PCBuild.sln to open with VS 2015 by default. | Steve Dower | 2015-05-20 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | Issue #24134: Use assertRaises() in context manager form in test_slice to | Serhiy Storchaka | 2015-05-20 | 1 | -1/+2 | |
|\ \ \ \ | |/ / / | | | | | | | | | avoid passing the test accidently because slice.__hash__ is None. | |||||
| * | | | Issue #24134: Use assertRaises() in context manager form in test_slice to | Serhiy Storchaka | 2015-05-20 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | avoid passing the test accidently because slice.__hash__ is None. | |||||
* | | | | Issue #22955: attrgetter, itemgetter and methodcaller objects in the operator | Serhiy Storchaka | 2015-05-20 | 4 | -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 in | Serhiy Storchaka | 2015-05-20 | 2 | -19/+12 | |
|\ \ \ \ | |/ / / | | | | | | | | | IDLE. Patch by Martin Panter. | |||||
| * | | | Issue #24245: Eliminated senseless expect clauses that have no any effect in | Serhiy Storchaka | 2015-05-20 | 2 | -19/+12 | |
| | | | | | | | | | | | | | | | | IDLE. Patch by Martin Panter. | |||||
* | | | | Issue #24245: Eliminated senseless expect clauses that have no any effect. | Serhiy Storchaka | 2015-05-20 | 5 | -14/+0 | |
| | | | | | | | | | | | | | | | | Patch by Martin Panter. | |||||
* | | | | Issue #16261: Converted some bare except statements to except statements | Serhiy Storchaka | 2015-05-20 | 7 | -13/+13 | |
| | | | | | | | | | | | | | | | | with specified exception type. Original patch by Ramchandra Apte. | |||||
* | | | | Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again | Serhiy Storchaka | 2015-05-19 | 3 | -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 again | Serhiy Storchaka | 2015-05-19 | 3 | -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 Pitrou | 2015-05-19 | 1 | -3/+3 | |
|\ \ \ \ | |/ / / | ||||||
| * | | | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized). | Antoine Pitrou | 2015-05-19 | 1 | -17/+17 | |
| | | | | ||||||
* | | | | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵ | Antoine Pitrou | 2015-05-19 | 3 | -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 Pitrou | 2015-05-19 | 3 | -6/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter. | |||||
* | | | | Null merge. | R David Murray | 2015-05-19 | 0 | -0/+0 | |
|\ \ \ \ | |/ / / |