On 04/01/2008, Joseph Armbruster <josepharmbruster at gmail.com> wrote: > Cool I suppose, except here's an odd man out: > > >>> 1.__str__() > File "<stdin>", line 1 > 1.__str__() > ^ > SyntaxError: invalid syntax It's parsed a floating point number - "1." - followed by the keyword "__str__". That's not valid. > >>> 1 .__str__() > '1' This one is a number "1" followed by the operator "." followed by "__str__". The lexer reads the longest valid token each time. Paul.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4