- 24 Dec, 2007 1 commit
-
-
Brett Cannon authored
Will backport.
-
- 22 Dec, 2007 1 commit
-
-
Andrew M. Kuchling authored
-
- 20 Dec, 2007 5 commits
-
-
Guido van Rossum authored
using a trick found in ifilter(). Feel free to backport to 2.5.
-
Georg Brandl authored
-
Guido van Rossum authored
-
Brett Cannon authored
Still need tests for warn_explicit and simplefilter.
-
Raymond Hettinger authored
-
- 19 Dec, 2007 9 commits
-
-
Guido van Rossum authored
This changes the rules for when __hash__ is inherited slightly, by allowing it to be inherited when one or more of __lt__, __le__, __gt__, __ge__ are overridden, as long as __eq__ and __ne__ aren't.
-
Raymond Hettinger authored
-
Guido van Rossum authored
This adds signal.set_wakeup_fd(fd) which sets a file descriptor to which a zero byte will be written whenever a C exception handler runs. I added a simple C API as well, PySignal_SetWakeupFd(fd).
-
Raymond Hettinger authored
-
Facundo Batista authored
-
Christian Heimes authored
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
-
Andrew M. Kuchling authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 18 Dec, 2007 12 commits
-
-
Raymond Hettinger authored
-
Christian Heimes authored
The patch unifies float("inf") and repr(float("inf")) on all platforms.
-
Raymond Hettinger authored
-
Christian Heimes authored
-
Raymond Hettinger authored
Allows dictionaries to be pre-sized (upto 255 elements) saving time lost to re-sizes with their attendant mallocs and re-insertions. Has zero effect on small dictionaries (5 elements or fewer), a slight benefit for dicts upto 22 elements (because they had to resize once anyway), and more benefit for dicts upto 255 elements (saving multiple resizes during the build-up and reducing the number of collisions on the first insertions). Beyond 255 elements, there is no addional benefit.
-
Guido van Rossum authored
-
Thomas Heller authored
-
Raymond Hettinger authored
New opcode, STORE_MAP saves the compiler from awkward stack manipulations and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem. Old disassembly: 0 BUILD_MAP 0 3 DUP_TOP 4 LOAD_CONST 1 (1) 7 ROT_TWO 8 LOAD_CONST 2 ('x') 11 STORE_SUBSCR 12 DUP_TOP 13 LOAD_CONST 3 (2) 16 ROT_TWO 17 LOAD_CONST 4 ('y') 20 STORE_SUBSCR New disassembly: 0 BUILD_MAP 0 3 LOAD_CONST 1 (1) 6 LOAD_CONST 2 ('x') 9 STORE_MAP 10 LOAD_CONST 3 (2) 13 LOAD_CONST 4 ('y') 16 STORE_MAP
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
Amaury's ideas works great. Should we build the Python core with WINVER=0x0500 and _WIN32_WINNT=0x0500, too?
-
Raymond Hettinger authored
-
- 17 Dec, 2007 1 commit
-
-
Facundo Batista authored
is now simpler. Thanks Mark Dickinson.
-
- 16 Dec, 2007 11 commits
-
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Christian Heimes authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-