[Python-3000] Octal

Oleg Broytmann phd at phd.pp.ru
Wed Mar 14 17:26:56 CET 2007


On Wed, Mar 14, 2007 at 06:59:03AM -0800, Guido van Rossum wrote:
>  I really don't like to have to write int('660', 8). How about 0t660?
> This is most symmetric with 0xffe for hex, as it is the 3rd letter of
> the word in both cases.
> 
> I think we also approved 0b101010 for binary numbers, didn't we? Other
> bases don't have enough of a following to bother.

      0b101010
      0c660
      0xffe

   I.e. the first letter from "bin", the second from "oct", the third from
"hex". Also "0c" resembles "oc" from "oct".

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-3000 mailing list