summaryrefslogtreecommitdiff
path: root/Objects/dictobject.c
AgeCommit message (Expand)AuthorLines
2004-07-15Moved SunPro warning suppression into pyport.h and out of individualNicholas Bastin-4/+0
2004-06-18Disabling end-of-loop code not reached warning on SunProNicholas Bastin-0/+4
2004-05-28Update docstring for dict.update() to match the new realities.Walter Dörwald-1/+2
2004-04-12* Add unittests for iterators that report their lengthRaymond Hettinger-7/+7
2004-03-20GCC was complaining that 'value' in dictiter_iternextvalue() wasn'tGuido van Rossum-5/+6
2004-03-19Factor out a double lookup.Raymond Hettinger-2/+1
2004-03-18Make the new dictionary iterators transparent with respect to length.Raymond Hettinger-4/+20
2004-03-18Optimize dictionary iterators.Raymond Hettinger-57/+202
2004-03-17Dictionary optimizations:Raymond Hettinger-24/+61
2004-03-08Factor out code common to PyDict_Copy() and PyDict_Merge().Raymond Hettinger-20/+6
2004-03-04SF #904720: dict.update should take a 2-tuple sequence like dict.__init_Raymond Hettinger-18/+24
2004-02-17Oops. Return -1 to distinguish error from empty dict.Jeremy Hylton-1/+1
2003-12-13Simplify previous checkin -- a new function was not needed.Raymond Hettinger-26/+1
2003-12-13* Added a new method flag, METH_COEXIST.Raymond Hettinger-0/+34
2003-11-25Expose dict_contains() and PyDict_Contains() with is about 10% fasterRaymond Hettinger-3/+4
2003-09-01SF patch #798467: Update docstring of has_key for bool changesRaymond Hettinger-1/+1
2003-05-07SF patch #729395: Dictionary tuningRaymond Hettinger-2/+2
2003-05-05SF patch #729395: Dictionary tuningRaymond Hettinger-10/+16
2003-05-03Add a reference to dictnotes.txt. It does no good if you don't know it'sRaymond Hettinger-0/+6
2003-03-17Renamed PyObject_GenericGetIter to PyObject_SelfIterRaymond Hettinger-1/+1
2003-03-17Created PyObject_GenericGetIter().Raymond Hettinger-8/+1
2003-03-06SF patch #693753: fix for bug 639806: default for dict.popRaymond Hettinger-3/+15
2003-02-15Add closing ) in commentNeal Norwitz-1/+1
2003-02-15cPickle.c, load_build(): Taught cPickle how to pick apartTim Peters-1/+11
2002-12-29SF patch #659536: Use PyArg_UnpackTuple where possible.Raymond Hettinger-4/+4
2002-12-11Constify char* API. Fixes #651363. 2.2 candidate.Martin v. Löwis-3/+3
2002-12-09SF 548651: Fix the METH_CLASS implementation.Tim Peters-3/+2
2002-12-07Remove assumption that cls is a subclass of dict.Raymond Hettinger-7/+1
2002-12-04Replace BadInternalCall with TypeError. Add a test case. Fix whitespace.Raymond Hettinger-2/+3
2002-11-27Add missing decrefNeal Norwitz-0/+1
2002-11-27SF Patch 643443. Added dict.fromkeys(iterable, value=None), a classRaymond Hettinger-0/+56
2002-11-23Patch #642500 with slight modifications: allow keyword arguments inJust van Rossum-5/+7
2002-09-04In doc strings, use 'k in D' rather than D.has_key(k).Guido van Rossum-2/+2
2002-08-19SF patch 576101, by Oren Tirosh: alternative implementation ofGuido van Rossum-9/+3
2002-07-17staticforward bites the dust.Jeremy Hylton-1/+1
2002-07-16Make StopIteration a sink state. This is done by clearing out theGuido van Rossum-28/+11
2002-06-13Patch #568124: Add doc string macros.Martin v. Löwis-30/+30
2002-04-12Add Raymond Hettinger's d.pop(). See SF patch 539949.Guido van Rossum-0/+38
2002-04-12PyObject_GC_Del and PyObject_Del can now be used as a functionNeil Schemenauer-3/+3
2002-04-03Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum-1/+1
2002-03-29Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.Tim Peters-34/+8
2002-03-28This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).Guido van Rossum-1/+1
2002-03-22Use pymalloc if it's enabled.Neil Schemenauer-2/+2
2001-12-11SF bug #491415 PyDict_UpdateFromSeq2() unusedTim Peters-8/+2
2001-12-03Fix of SF bug #475877 (Mutable subtype instances are hashable).Guido van Rossum-1/+8
2001-10-29Rename "dictionary" (type and constructor) to "dict".Tim Peters-5/+5
2001-10-27dictionary() constructor:Tim Peters-7/+5
2001-10-26Generalize dictionary() to accept a sequence of 2-sequences. At theTim Peters-16/+102
2001-10-05Enable GC for new-style instances. This touches lots of files, sinceGuido van Rossum-1/+2
2001-09-14Changed the dict implementation to take "string shortcuts" only whenTim Peters-13/+16