eval('07') works, eval('08') fails, why?

Grant Edwards invalid at invalid
Thu Jan 8 23:12:00 CET 2009


On 2009-01-08, Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> wrote:
> Grant Edwards a ?crit :
>> On 2009-01-08, Alex van der Spek <amvds at xs4all.nl> wrote:
>> 
>>> Thanks much, that makes sense!
>> 
>> Well, that's the correct explanation.
>> 
>> Whether that feature makes sense or not is debatable.  Even I'm
>> not old-school enough that I ever use octal literals -- and I
>> used Unix on a PDP-11 for years (actually had my own PDP-11 for
>> while, but it never worked).  Now that I think of it, my
>> Heathkit Z80 stuff used octal notation too.
>
> What about your DeathStation 9000 ?-)

The closest thing I've seen to a DS9K would probably be a CDC
Cyber 6600 mainframe.  I guess for somebody with a mainframe
background it might not have been too weird, but for somebody
who came from a PDP-11, Z80, 65XX background, it seemed awfully
obtuse.

-- 
Grant Edwards                   grante             Yow! I'm having a RELIGIOUS
                                  at               EXPERIENCE ... and I don't
                               visi.com            take any DRUGS



More information about the Python-list mailing list