[Python-Dev] oct and hex Py3k warnings

Benjamin Peterson musiccomposition at gmail.com
Sun May 18 02:42:52 CEST 2008


I know Guido has opposed adding Py3k warnings to oct and hex for
"practical reasons," but I would like to make the case again.

future_buitlins oct and hex will give you the correct Py3k behavior,
but 2to3 can't convert old hex and oct usage to the new ones. That's
why is would be helpful to warn about it and encourage people to
import from future_builtins.


-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."


More information about the Python-Dev mailing list