A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-April/043941.html below:

[Python-Dev] Re: ANNOUNCE: 'goto' for Python

[Python-Dev] Re: ANNOUNCE: 'goto' for Python [Python-Dev] Re: ANNOUNCE: 'goto' for PythonHye-Shik Chang perky at i18n.org
Thu Apr 1 22:24:24 EST 2004
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

More information about the Python-Dev mailing list

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