Guido van Rossum e04eaec5b6 Tim pointed out a remaining vulnerability in popitem(): the
PyTuple_New() could *conceivably* clear the dict, so move the test for
an empty dict after the tuple allocation.  It means that we waste time
allocating and deallocating a 2-tuple when the dict is empty, but who
cares.  It also means that when the dict is empty *and* there's no
memory to allocate a 2-tuple, we raise MemoryError, not KeyError --
but that may actually a good idea: if there's no room for a lousy
2-tuple, what are the chances that there's room for a KeyError
instance?
2001-04-16 00:02:32 +00:00
..
2000-05-02 18:34:30 +00:00
2001-04-14 17:55:09 +00:00
2001-01-17 15:33:18 +00:00
2001-04-12 18:38:48 +00:00
2001-01-18 00:00:53 +00:00
2001-04-12 18:38:48 +00:00