On Fri, Oct 9, 2009 at 11:04 AM, Victor Subervi <victorsube...@gmail.com>wrote:
> So, because the results in sstp were duplicates ( ['prescriptions', > 'prescriptions'] ) it only returned one result in the dict(zip()) statement. > Weird. Bug or feature? ;) > Thanks, > V Feature. zip() returned two results, but dictionaries are mappings of keys to values. If you duplicate a key, you don't get multiple values for that key -- you replace the value. If you want something dictionary like which has multiple values, try something like: http://code.activestate.com/recipes/52219/ Or even this dict subclass: http://code.activestate.com/recipes/440502/ HTH, --S
-- http://mail.python.org/mailman/listinfo/python-list