[Python-3000] Fwd: Re: Fwd: Re: Fwd: Re: Octal
daniel at stutzbachenterprises.com
Thu Mar 15 20:29:56 CET 2007
On 3/15/07, Georg Brandl <g.brandl at gmx.net> wrote:
> My concern is that I don't want to have to write something like
> x = 0t755 # octal literal
> because then I can also write
> x = 493 # 0755 in octal
> and don't need octal literals at all.
The later is error-prone and might be hard to debug if you put too
much faith in comments.
However, I'd be happy with leaving out octal literals in favor of:
x = int('755', 8)
Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises LLC
More information about the Python-3000