Python's simplicity philosophy

Paul Rubin http
Wed Nov 19 20:02:16 EST 2003


"Andrew Dalke" <adalke at mindspring.com> writes:
> needed yours.  And I've used what can now be
> written as
> 
>   unique_keys = dict.from_keys(lst).keys()

This from_keys operation must be something new, and consing up a
dictionary like that is a woeful amount of overhead.  But I guess
it would do the job.




More information about the Python-list mailing list