[Python-ideas] Minimal built-ins (+ tiny doc suggestion)

Simon Sapin simon.sapin at kozea.fr
Fri May 25 10:25:29 CEST 2012


Hi,

Le 25/05/2012 09:53, Mark Summerfield a écrit :
> Built-ins:
>
> In an effort to keep the core language as small as possible (to keep it
> "brain sized":-) would it be reasonable to deprecate filter() and map()
> and to move them to the standard library as happened with reduce()?
> After all, don't people mostly use list comprehensions and generator
> expressions for these nowadays?


Aside from the pain of porting existing code, what would this achieve? 
How do filter() and map() bother you if you can just ignore them and not 
use them?

The only upside I can imagine in having less bultins is that using 
variables with the same names is a kind-of bad practice. But it can not 
cause a bug if you don’t use the builtin at all.


> Docs:
>
> The Python Module Indexhttp://docs.python.org/dev/py-modindex.html
> Shows _ | a | b | ...
> This is prettier than _ | A | B | ...
> but also harder to click because the letters are smaller; so I would
> prefer the use of capitals.


Adding CSS padding on links can make the clickable area bigger, so the 
choice of using capitals or not can be independent of that.


Regards,
-- 
Simon Sapin



More information about the Python-ideas mailing list