[Patches] [Patch #102626] Add a .first{key/item/value}() method to dictionaries
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 3 Dec 2000 03:51:07 -0800
Patch #102626 has been updated.
Project: python
Category: core (C code)
Status: Open
Submitted by: moshez
Assigned to : Nobody
Summary: Add a .first{key/item/value}() method to dictionaries
Follow-Ups:
Date: 2000-Dec-03 03:51
By: moshez
Comment:
OK, this fixes some problem with the applied-and-retracted
version of the methods:
* It adds exception-information to the docos
* It uses _SET_ITEM and not _SetItem for more efficiency.
I will still build skewed dictionaries.
Opinion: maybe it would do to rehash the dictionary when
there are too few items too? Wouldn't that solve everything
better then Tim's weird "let's keep a pointer into the dictionary" dict?
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=102626&group_id=5470