In <[EMAIL PROTECTED]>, keithgabryelski
wrote:

> Does it make sense to provide this syntax for iterating key/value
> pairs from a dictionary?
> 
> for k,v in **dict():
>    print k,v
> 
> why is this not the same as:
> 
> for k,v in dict().items():
>   print k,v

Why should it be?  Why adding something that unreadable and magic instead
of the perfect readable ``for k, v in some_dict.iteritems():``?

And I don't see why it should be ``**``!?

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to