summaryrefslogtreecommitdiff
path: root/Objects/dictobject.c
AgeCommit message (Expand)AuthorLines
2002-03-28Backport to 2.2.1:Guido van Rossum-1/+1
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
2001-09-02Repair typo in comment.Tim Peters-1/+1
2001-09-02Make dictionary() a real constructor. Accepts at most one argument, "aTim Peters-2/+29
2001-08-29Use new GC API.Neil Schemenauer-7/+6
2001-08-16Patch #427190: Implement and use METH_NOARGS and METH_O.Martin v. Löwis-50/+25
2001-08-10Add PyDict_Merge(a, b, override):Guido van Rossum-2/+18
2001-08-02Merge of descr-branch back into trunk.Tim Peters-123/+107
2001-06-26dict_update(): Generalize this method so {}.update() accepts anyBarry Warsaw-17/+70
2001-06-16dict_repr: Reuse one of the int vars (minor code simplification).Tim Peters-3/+3
2001-06-16SF bug 433228: repr(list) woes when len(list) big.Tim Peters-29/+67
2001-06-04Store the mask instead of the size in dictobjects. The mask is moreTim Peters-23/+29
2001-06-03lookdict: stop more insane core-dump mutating comparison cases. ShouldTim Peters-6/+31
2001-06-03lookdict: Reduce obfuscating code duplication with a judicious goto.Tim Peters-25/+21
2001-06-02Finish the dict->string coredump fix. Need sleep.Tim Peters-1/+1
2001-06-02Coredumpers from Michael Hudson, mutating dicts while printing orTim Peters-7/+19
2001-06-02dict_popitem(): Repaired last-second 2.1 comment, which misidentified theTim Peters-5/+8
2001-06-02New collision resolution scheme: no polynomials, simpler, faster, lessTim Peters-155/+116
2001-05-27Implement an old idea of Christian Tismer's: use polynomial divisionTim Peters-18/+72
2001-05-24Patch #424335: Implement string_richcompare, remove string_compare.Martin v. Löwis-4/+3
2001-05-24dictresize(): Rebuild small tables if there are any dummies, not just ifTim Peters-7/+11
2001-05-23Jack Jansen hit a bug in the new dict code, reported on python-dev.Tim Peters-9/+28
2001-05-22Remove unused variable.Fred Drake-1/+0
2001-05-22SF patch #425242: Patch which "inlines" small dictionaries.Tim Peters-81/+145
2001-05-19Bugfix candidate.Tim Peters-2/+3
2001-05-17Speed dictresize by collapsing its two passes into one; the reason givenTim Peters-8/+9
2001-05-13Aggressive reordering of dict comparisons. In case of collision, it standsTim Peters-30/+21
2001-05-13Get rid of the superstitious "~" in dict hashing's "i = (~hash) & mask".Tim Peters-10/+2
2001-05-10Restore dicts' tp_compare slot, and change dict_richcompare to say itTim Peters-15/+3
2001-05-10Repair typo in comment.Tim Peters-1/+1
2001-05-10SF bug #422121 Insecurities in dict comparison.Tim Peters-34/+95
2001-05-08SF patch #421922: Implement rich comparison for dicts.Tim Peters-2/+72
2001-05-02Mchael Hudson pointed out that the code for detecting changes inGuido van Rossum-4/+4
2001-05-01Add experimental iterkeys(), itervalues(), iteritems() to dictGuido van Rossum-11/+85
2001-04-23Mondo changes to the iterator stuff, without changing how Python codeGuido van Rossum-2/+21
2001-04-20Iterators phase 1. This comprises:Guido van Rossum-0/+103
2001-04-20Oops. Removed dictiter_new decl that wasn't supposed to go in yet.Guido van Rossum-2/+0
2001-04-20Implement, test and document "key in dict" and "key not in dict".Guido van Rossum-1/+35
2001-04-16Tim pointed out a remaining vulnerability in popitem(): theGuido van Rossum-5/+6
2001-04-15Tentative fix for a problem that Tim discovered at the last moment,Guido van Rossum-61/+110
2001-03-21Make PyDict_Next safe to use for loops that merely modify the valuesTim Peters-8/+32
2001-01-18Rich comparisons:Guido van Rossum-118/+45
2001-01-03dict_update has two boundary conditions: a.update(a) and a.update({})Jeremy Hylton-2/+2
2000-12-13Add long-overdue docstrings to dict methods.Tim Peters-11/+53