On Fri, Apr 02, 2004 at 02:31:06PM +1200, Greg Ewing wrote: > Mike Rovner <mike at nospam.com>: > > > Shall I file a bug about python lexer which allows space between class and > > attribute? Or that's a fiature? > > It's certainly not a bug. An identifier and a dot following it > are separate lexical tokens, so whitespace should be allowed > between them in the interests of consistency, even if it's not > all that useful. > Agreed. At least it has one usage: >>> 1 .__add__ <method-wrapper object at 0x81c4dec> >>> 1.__add__ File "<stdin>", line 1 1.__add__ ^ SyntaxError: invalid syntax >>> addone = 1 .__add__ >>> addone(5) 6 Even though it's not so beautiful. :) Hye-Shik
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