[Python-Dev] Re: Christmas Wishlist (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Sun Dec 14 17:05:48 EST 2003


Raymond wrote:

I. eval() to accept custom mapping arguments for globals and locals. This makes it possible to write a smart getitem method for applications like spreadsheets or case-insensitive evaluation.

+0. if you can do it without affecting performance in the dictionary case, that is. -1 if you can't.

II. Timer.timeit to take an optional context argument.

+1

III. enumerate to take an optional argument:

+0 (it's not that hard or expensive to add an offset inside the loop)

IV. list.sorted() to become just sorted(). All of the common use cases read better without the "list." prefix:

+1

one more:

V. a join() builtin (join(x,s) becomes s.join(x)). All of the common sep.join() use cases read better without the string literal prefix.

(I'll leave the rest for later)



More information about the Python-Dev mailing list