Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Issue #24373: Eliminate PEP 489 test refleaks | Nick Coghlan | 2015-06-04 | 2 | -12/+34 | |
| | | | | | | | | | | | | | | | | | | | | | _testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid reference leaks encountered when combining tp_dealloc with PyType_FromSpec (see issue #16690 for details) | |||||
* | | | Issue #19543: Implementation of isclose as per PEP 485 | Tal Einat | 2015-05-31 | 3 | -1/+199 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For details, see: PEP 0485 -- A Function for testing approximate equality Functions added: math.isclose() and cmath.isclose(). Original code by Chris Barker. Patch by Tal Einat. | |||||
* | | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 3 | -15/+31 | |
|\ \ \ | |/ / | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | |||||
| * | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 3 | -15/+31 | |
| | | | | | | | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. | |||||
* | | | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 4 | -17/+17 | |
| | | | | | | | | | | | | signatures as booleans. | |||||
* | | | Use converter names instead of format units in Argument Clinic descriptions | Serhiy Storchaka | 2015-05-30 | 1 | -3/+3 | |
| | | | | | | | | | | | | in builtin and _crypt modules. | |||||
* | | | Issue #16991: Add a C implementation of collections.OrderedDict. | Eric Snow | 2015-05-30 | 1 | -0/+3 | |
| | | | ||||||
* | | | fix importing one char extension modules (closes #24328) | Benjamin Peterson | 2015-05-29 | 1 | -0/+8 | |
| | | | ||||||
* | | | Issue #24326: Fixed audioop.ratecv() with non-default weightB argument. | Serhiy Storchaka | 2015-05-29 | 1 | -1/+1 | |
|\ \ \ | |/ / | | | | | | | Original patch by David Moore. | |||||
| * | | Issue #24326: Fixed audioop.ratecv() with non-default weightB argument. | Serhiy Storchaka | 2015-05-29 | 1 | -1/+1 | |
| | | | | | | | | | | | | Original patch by David Moore. | |||||
* | | | Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc. | Yury Selivanov | 2015-05-28 | 1 | -1/+1 | |
| | | | ||||||
* | | | Backed out changeset: b0a0b9b59012 | Serhiy Storchaka | 2015-05-24 | 1 | -1/+546 | |
| | | | ||||||
* | | | Backed out changeset 57776eee74f2 | Larry Hastings | 2015-05-23 | 1 | -546/+1 | |
| | | | ||||||
* | | | Issue #14373: Added C implementation of functools.lru_cache(). Based on | Serhiy Storchaka | 2015-05-23 | 1 | -1/+546 | |
| | | | | | | | | | | | | patches by Matt Joiner and Alexey Kachayev. | |||||
* | | | Fixes cast warning in bufferedio.c | Steve Dower | 2015-05-23 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #24268: Address some PEP 489 refleaks | Nick Coghlan | 2015-05-23 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | - 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 initialization | Nick Coghlan | 2015-05-23 | 7 | -100/+692 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 24244: Prevents termination when an invalid format string is ↵ | Steve Dower | 2015-05-22 | 1 | -7/+2 | |
| | | | | | | | | | | | | encountered on Windows. | |||||
* | | | Issue #20035: Reimplement tkinter._fix module as a C function. | Zachary Ware | 2015-05-22 | 1 | -1/+118 | |
| | | | | | | | | | | | | | | | The new private C function makes no permanent changes to the environment and is #ifdef'd out on non-Windows platforms. | |||||
* | | | Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). | Serhiy Storchaka | 2015-05-22 | 1 | -1/+1 | |
|\ \ \ | |/ / | | | | | | | | | | 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 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | 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 | 1 | -37/+43 | |
| | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | Issue #22955: Fixed reference leak in attrgetter.repr(). | Serhiy Storchaka | 2015-05-21 | 1 | -1/+3 | |
| | | | ||||||
* | | | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵ | Antoine Pitrou | 2015-05-20 | 1 | -0/+16 | |
| | | | | | | | | | | | | Rupprecht. | |||||
* | | | Issue #22955: attrgetter, itemgetter and methodcaller objects in the operator | Serhiy Storchaka | 2015-05-20 | 1 | -7/+270 | |
| | | | | | | | | | | | | | | | module now support pickling. Added readable and evaluable repr for these objects. Based on patch by Josh Rosenberg. | |||||
* | | | Issue #24091: Fixed various crashes in corner cases in C implementation of | Serhiy Storchaka | 2015-05-18 | 1 | -46/+96 | |
|\ \ \ | |/ / | | | | | | | ElementTree. | |||||
| * | | Issue #24091: Fixed various crashes in corner cases in C implementation of | Serhiy Storchaka | 2015-05-18 | 1 | -47/+97 | |
| | | | | | | | | | | | | ElementTree. | |||||
| * | | Issue #23796: peak and read1 methods of BufferedReader now raise ValueError | Berker Peksag | 2015-05-12 | 1 | -0/+5 | |
| | | | | | | | | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder. | |||||
* | | | Issue #23488: Fix a syntax error on big endian platforms. | Zachary Ware | 2015-05-18 | 1 | -1/+1 | |
| | | | | | | | | | | | | Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run. | |||||
* | | | allow test node after ** in calls (closes #24176) | Benjamin Peterson | 2015-05-16 | 1 | -1/+1 | |
| | | | ||||||
* | | | Fixed compilation error in signalmodule.c (issue #20182). | Serhiy Storchaka | 2015-05-16 | 2 | -8/+8 | |
| | | | ||||||
* | | | Issue #20182: converted the signal module to use Argument Clinic | Tal Einat | 2015-05-16 | 2 | -215/+678 | |
| | | | ||||||
* | | | Tighten-up code by eliminating an unnecessary variable. | Raymond Hettinger | 2015-05-16 | 1 | -10/+8 | |
| | | | ||||||
* | | | Minor code clean-up. | Raymond Hettinger | 2015-05-16 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #20172: Update clinicizations to current clinic. | Zachary Ware | 2015-05-13 | 2 | -96/+130 | |
| | | | ||||||
* | | | Issue #23488: Random generator objects now consume 2x less memory on 64-bit. | Serhiy Storchaka | 2015-05-13 | 1 | -70/+68 | |
| | | | ||||||
* | | | Issue #20172: Convert the _winapi module to Argument Clinic. | Zachary Ware | 2015-05-13 | 2 | -396/+1292 | |
| | | | ||||||
* | | | More timings suggest that 2500 is closer to the break-even point. | Raymond Hettinger | 2015-05-13 | 1 | -1/+1 | |
| | | | ||||||
* | | | Converted os._getfullpathname() and os._isdir() to Argument Clinic. | Serhiy Storchaka | 2015-05-12 | 2 | -60/+112 | |
| | | | ||||||
* | | | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵ | Serhiy Storchaka | 2015-05-12 | 1 | -0/+28 | |
| | | | | | | | | | | | | | | | | | | now is deprecated. Based on patch by Mark Dickinson. | |||||
* | | | Issue #23796: peak and read1 methods of BufferedReader now raise ValueError | Berker Peksag | 2015-05-12 | 1 | -0/+5 | |
| | | | | | | | | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder. | |||||
* | | | Fixed compilation on Windows for issue #20173. | Serhiy Storchaka | 2015-05-12 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #20173: Converted the _codecs module to Argument Clinic. | Serhiy Storchaka | 2015-05-12 | 2 | -616/+1998 | |
| | | | ||||||
* | | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 2 | -12/+200 | |
| | | | ||||||
* | | | merge | Raymond Hettinger | 2015-05-12 | 1 | -0/+5 | |
|\ \ \ | |/ / | ||||||
| * | | Defend against a mutation during comparison | Raymond Hettinger | 2015-05-12 | 1 | -0/+5 | |
| | | | ||||||
* | | | Minor code cleanups. | Raymond Hettinger | 2015-05-12 | 1 | -5/+5 | |
| | | | ||||||
* | | | Minor stylistic clean-up. | Raymond Hettinger | 2015-05-11 | 1 | -6/+6 | |
| | | | ||||||
* | | | Issue #24155: Optimize heapify for better cache utililzation. | Raymond Hettinger | 2015-05-11 | 1 | -0/+72 | |
| | | | ||||||
* | | | merge 3.4 | Benjamin Peterson | 2015-05-09 | 1 | -2/+11 | |
|\ \ \ | |/ / |