summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Issue #24373: Eliminate PEP 489 test refleaksNick Coghlan2015-06-042-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 485Tal Einat2015-05-313-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 Storchaka2015-05-303-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 Storchaka2015-05-303-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 Storchaka2015-05-304-17/+17
| | | | | | | | | | | | signatures as booleans.
* | | Use converter names instead of format units in Argument Clinic descriptionsSerhiy Storchaka2015-05-301-3/+3
| | | | | | | | | | | | in builtin and _crypt modules.
* | | Issue #16991: Add a C implementation of collections.OrderedDict.Eric Snow2015-05-301-0/+3
| | |
* | | fix importing one char extension modules (closes #24328)Benjamin Peterson2015-05-291-0/+8
| | |
* | | Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.Serhiy Storchaka2015-05-291-1/+1
|\ \ \ | |/ / | | | | | | Original patch by David Moore.
| * | Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.Serhiy Storchaka2015-05-291-1/+1
| | | | | | | | | | | | Original patch by David Moore.
* | | Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.Yury Selivanov2015-05-281-1/+1
| | |
* | | Backed out changeset: b0a0b9b59012Serhiy Storchaka2015-05-241-1/+546
| | |
* | | Backed out changeset 57776eee74f2Larry Hastings2015-05-231-546/+1
| | |
* | | Issue #14373: Added C implementation of functools.lru_cache(). Based onSerhiy Storchaka2015-05-231-1/+546
| | | | | | | | | | | | patches by Matt Joiner and Alexey Kachayev.
* | | Fixes cast warning in bufferedio.cSteve Dower2015-05-231-1/+1
| | |
* | | Issue #24268: Address some PEP 489 refleaksNick Coghlan2015-05-231-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 initializationNick Coghlan2015-05-237-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 Dower2015-05-221-7/+2
| | | | | | | | | | | | encountered on Windows.
* | | Issue #20035: Reimplement tkinter._fix module as a C function.Zachary Ware2015-05-221-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 Storchaka2015-05-221-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 Storchaka2015-05-221-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 Hettinger2015-05-221-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 Storchaka2015-05-211-1/+3
| | |
* | | Issue #9858: Add missing method stubs to _io.RawIOBase. Patch by Laura ↵Antoine Pitrou2015-05-201-0/+16
| | | | | | | | | | | | Rupprecht.
* | | Issue #22955: attrgetter, itemgetter and methodcaller objects in the operatorSerhiy Storchaka2015-05-201-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 ofSerhiy Storchaka2015-05-181-46/+96
|\ \ \ | |/ / | | | | | | ElementTree.
| * | Issue #24091: Fixed various crashes in corner cases in C implementation ofSerhiy Storchaka2015-05-181-47/+97
| | | | | | | | | | | | ElementTree.
| * | Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+5
| | | | | | | | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
* | | Issue #23488: Fix a syntax error on big endian platforms.Zachary Ware2015-05-181-1/+1
| | | | | | | | | | | | Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.
* | | allow test node after ** in calls (closes #24176)Benjamin Peterson2015-05-161-1/+1
| | |
* | | Fixed compilation error in signalmodule.c (issue #20182).Serhiy Storchaka2015-05-162-8/+8
| | |
* | | Issue #20182: converted the signal module to use Argument ClinicTal Einat2015-05-162-215/+678
| | |
* | | Tighten-up code by eliminating an unnecessary variable.Raymond Hettinger2015-05-161-10/+8
| | |
* | | Minor code clean-up.Raymond Hettinger2015-05-161-1/+1
| | |
* | | Issue #20172: Update clinicizations to current clinic.Zachary Ware2015-05-132-96/+130
| | |
* | | Issue #23488: Random generator objects now consume 2x less memory on 64-bit.Serhiy Storchaka2015-05-131-70/+68
| | |
* | | Issue #20172: Convert the _winapi module to Argument Clinic.Zachary Ware2015-05-132-396/+1292
| | |
* | | More timings suggest that 2500 is closer to the break-even point.Raymond Hettinger2015-05-131-1/+1
| | |
* | | Converted os._getfullpathname() and os._isdir() to Argument Clinic.Serhiy Storchaka2015-05-122-60/+112
| | |
* | | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵Serhiy Storchaka2015-05-121-0/+28
| | | | | | | | | | | | | | | | | | now is deprecated. Based on patch by Mark Dickinson.
* | | Issue #23796: peak and read1 methods of BufferedReader now raise ValueErrorBerker Peksag2015-05-121-0/+5
| | | | | | | | | | | | | | | | | | if they called on a closed object. Patch by John Hergenroeder.
* | | Fixed compilation on Windows for issue #20173.Serhiy Storchaka2015-05-121-1/+1
| | |
* | | Issue #20173: Converted the _codecs module to Argument Clinic.Serhiy Storchaka2015-05-122-616/+1998
| | |
* | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-122-12/+200
| | |
* | | mergeRaymond Hettinger2015-05-121-0/+5
|\ \ \ | |/ /
| * | Defend against a mutation during comparisonRaymond Hettinger2015-05-121-0/+5
| | |
* | | Minor code cleanups.Raymond Hettinger2015-05-121-5/+5
| | |
* | | Minor stylistic clean-up.Raymond Hettinger2015-05-111-6/+6
| | |
* | | Issue #24155: Optimize heapify for better cache utililzation.Raymond Hettinger2015-05-111-0/+72
| | |
* | | merge 3.4Benjamin Peterson2015-05-091-2/+11
|\ \ \ | |/ /