RFC: Viper: yet another python implementation

Michael Haggerty mhagger at blizzard.harvard.edu
Wed Aug 11 10:59:10 EDT 1999


skaller at maxtal.com.au (John (Max) Skaller) writes:

> Extensions:
> 
> 	3) 'in' applies to dictionaries 'as if a sequence of keys were used'

At first I thought `hey that's cool!' since I'm kindof sick of typing
has_key() all the time.  But then I realized that this is not really
consistent with sequence types.

    item in list     IMPLIES      list[something] == item

but according to your definition,

    item in dict     IMPLIES      list[item] == something

where in each case `something' is undetermined.  I suggest you rethink
this `feature'.

Michael

-- 
Michael Haggerty
mhagger at blizzard.harvard.edu




More information about the Python-list mailing list