Serhiy Storchaka
e7070f09bc
Issue #14373 : C implementation of functools.lru_cache() now can be used with
methods.
11 years ago
Berker Peksag
12b50ce4cb
Issue #23659 : Document **fmtparams in csv.register_dialect docstring.
Initial patch by Brandon Milam.
11 years ago
Nick Coghlan
53f95024d7
Issue #24373 : Eliminate PEP 489 test refleaks
_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)
11 years ago
Tal Einat
d5519ed7f4
Issue #19543 : Implementation of isclose as per PEP 485
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.
11 years ago
Serhiy Storchaka
fa494fd883
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
11 years ago
Serhiy Storchaka
8b2e8b6cce
Specify default values of semantic booleans in Argument Clinic generated signatures as booleans.
11 years ago
Serhiy Storchaka
7e810a6e3d
Use converter names instead of format units in Argument Clinic descriptions
in builtin and _crypt modules.
11 years ago
Eric Snow
96c6af9b20
Issue #16991 : Add a C implementation of collections.OrderedDict.
11 years ago
Eric Snow
47db71756d
Issue #16991 : Add a C implementation of collections.OrderedDict.
11 years ago
Benjamin Peterson
e20056c8f7
fix importing one char extension modules ( closes #24328 )
11 years ago
Serhiy Storchaka
50451eb912
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
11 years ago
Yury Selivanov
6ef059097c
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
11 years ago
Serhiy Storchaka
46c5611948
Backed out changeset: b0a0b9b59012
11 years ago
Larry Hastings
8252cc9832
Backed out changeset 57776eee74f2
11 years ago
Serhiy Storchaka
1c858c352b
Issue #14373 : Added C implementation of functools.lru_cache(). Based on
patches by Matt Joiner and Alexey Kachayev.
11 years ago
Steve Dower
6baa0f9805
Fixes cast warning in bufferedio.c
11 years ago
Nick Coghlan
a48db2bc8b
Issue #24268 : Address some PEP 489 refleaks
- missing DECREF in PyModule_FromDefAndSpec2
- missing DECREF in PyType_FromSpecAndBases2
- missing DECREF in _testmultiphase module
Patch by Petr Viktorin
11 years ago
Nick Coghlan
d5cacbb1d9
PEP 489: Multi-phase extension module initialization
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.
11 years ago
Steve Dower
d9ef74e3dd
Issue 24244: Prevents termination when an invalid format string is encountered on Windows.
11 years ago
Zachary Ware
7dc9dea778
Issue #20035 : Reimplement tkinter._fix module as a C function.
The new private C function makes no permanent changes to the environment
and is #ifdef'd out on non-Windows platforms.
11 years ago
Serhiy Storchaka
08d230a540
Issue #24257 : Fixed incorrect uses of PyObject_IsInstance().
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
11 years ago
Raymond Hettinger
5cbd8331ff
Issue #24221 : Small optimizations for heapq.
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.
11 years ago
Serhiy Storchaka
548de2b210
Issue #22955 : Fixed reference leak in attrgetter.repr().
11 years ago
Antoine Pitrou
45d6156154
Issue #9858 : Add missing method stubs to _io.RawIOBase. Patch by Laura Rupprecht.
11 years ago
Serhiy Storchaka
35ac5f8280
Issue #22955 : attrgetter, itemgetter and methodcaller objects in the operator
module now support pickling. Added readable and evaluable repr for these
objects. Based on patch by Josh Rosenberg.
11 years ago
Serhiy Storchaka
5bf3120e24
Issue #24091 : Fixed various crashes in corner cases in C implementation of
ElementTree.
11 years ago
Zachary Ware
c15ea4c812
Issue #23488 : Fix a syntax error on big endian platforms.
Hopefully this will allow the PPC64 PowerLinux buildbot to finish a test run.
11 years ago
Benjamin Peterson
de12b79cd6
allow test node after ** in calls ( closes #24176 )
11 years ago
Serhiy Storchaka
6b680cd6b2
Fixed compilation error in signalmodule.c (issue #20182 ).
11 years ago
Tal Einat
c7027b7904
Issue #20182 : converted the signal module to use Argument Clinic
11 years ago
Raymond Hettinger
c784c6db60
Tighten-up code by eliminating an unnecessary variable.
11 years ago
Raymond Hettinger
d69755d1a3
Minor code clean-up.
11 years ago
Zachary Ware
77772c0e7b
Issue #20172 : Update clinicizations to current clinic.
11 years ago
Serhiy Storchaka
dce0405f03
Issue #23488 : Random generator objects now consume 2x less memory on 64-bit.
11 years ago
Zachary Ware
f2244eaf9e
Issue #20172 : Convert the _winapi module to Argument Clinic.
11 years ago
Raymond Hettinger
636488043b
More timings suggest that 2500 is closer to the break-even point.
11 years ago
Serhiy Storchaka
f0b5015edb
Converted os._getfullpathname() and os._isdir() to Argument Clinic.
11 years ago
Serhiy Storchaka
48e47aaa28
Issue #22486 : Added the math.gcd() function. The fractions.gcd() function now is
deprecated. Based on patch by Mark Dickinson.
11 years ago
Berker Peksag
ea6d5592f2
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object.
Patch by John Hergenroeder.
11 years ago
Berker Peksag
d10d6ae2fa
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
if they called on a closed object.
Patch by John Hergenroeder.
11 years ago
Serhiy Storchaka
1aa5e1d63e
Fixed compilation on Windows for issue #20173 .
11 years ago
Serhiy Storchaka
0c59ff6430
Issue #20173 : Converted the _codecs module to Argument Clinic.
11 years ago
Raymond Hettinger
b9db9e152f
Defend against a mutation during comparison
11 years ago
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
11 years ago
Raymond Hettinger
99bf9a2567
Minor code cleanups.
11 years ago
Raymond Hettinger
a032e46df6
Minor stylistic clean-up.
11 years ago
Raymond Hettinger
bc33e57d56
Issue #24155 : Optimize heapify for better cache utililzation.
11 years ago
Benjamin Peterson
65bcdd7195
ensure .keywords is always a dict
11 years ago
Benjamin Peterson
0171d7faa0
fix libffi compilation on FreeBSD ( #23042 )
Patch from Marc-Andre Lemburg.
11 years ago
Larry Hastings
01b0883602
Issue #20274 : Remove ignored and erroneous "kwargs" parameters from three
METH_VARARGS methods on _sqlite.Connection.
11 years ago