[Python-3000] Fwd: Re: Octal

Steven Bethard steven.bethard at gmail.com
Wed Mar 14 21:56:32 CET 2007


On 3/14/07, Thomas Wouters <thomas at python.org> wrote:
>
>
> On 3/14/07, Raymond Hettinger <python at rcn.com> wrote:
> > - In 3.0, we don't want an exception.
>
> Eh, no, you might not want one, but I most assuredly do want an exception.
> Having formerly-octal literals suddenly give wrong results would be much
> more of a stumbling block than having them in the first place, especially
> considering we forgot to change all the other languages out there. An
> exception can make the difference between '0t60' and '60' clear in a single
> message, not to mention refuse the temptation to guess.

Sorry, but could you explain why having the -py3k flag raise the
exception for your 2.X code wouldn't be sufficient?  Is it because you
expect your fingers will continue to type 0660 instead of 0t660 when
you're writing Python 3000 code?

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy


More information about the Python-3000 mailing list