eval('000052') = 42?
Roger Miller
roger.miller at nova-sol.com
Wed Feb 21 15:21:56 EST 2007
More information about the Python-list mailing list
Wed Feb 21 15:21:56 EST 2007
- Previous message (by thread): eval('000052') = 42?
- Next message (by thread): How to do a Decorator Here?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Feb 20, 7:37 pm, "John Machin" <sjmac... at lexicon.net> wrote: > On Feb 21, 3:09 pm, Astan Chee <s... at al.com.au> wrote: > > > Hi, > > I just tried to do > > eval('00052') and it returned 42. > > Is this a known bug in the eval function? Or have I missed the way eval > > function works? > > Thanks > > Eight fives are forty. Forty plus two is forty two. I see no bug here, > only a language design strangeness which can be blamed on the then- > pervasive influence of all things from Bell Labs :-) So is this anachronism slated for removal in Python 3?
- Previous message (by thread): eval('000052') = 42?
- Next message (by thread): How to do a Decorator Here?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list