[Python-Dev] Backporting PEP 3127 to trunk

Georg Brandl g.brandl at gmx.net
Sat Feb 23 11:57:35 CET 2008


Eric Smith schrieb:
> Guido van Rossum wrote:
>> I wonder if, in order to change the behavior of various built-in
>> functions, it wouldn't be easier to be able to write
>> 
>> from future_builtins import oct, hex  # and who knows what else
> 
> This makes sense to me, especially if we have a 2to3 fixer which removes 
> this line.  I'll work on implementing future_builtins.

Will the future map and filter also belong there (and if they are imported
from future_builtins, 2to3 won't put a list() around them)?

Georg


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-Dev mailing list