[Python-3000] Ellipsis

Christian Heimes lists at cheimes.de
Thu Jan 24 22:14:09 CET 2008

Raymond Hettinger wrote:
>> Some folks thought it would be cute to be able to 
>> write incomplete code like this:
>> class C:
>>   def meth(self): ...
>>   ...
>> and have it be syntactically correct.
> Hmm, that *is* cute :-)

Indeed! It's one character shorter than "pass", it requires much less
finger movement and it even looks cool. I like it

However ... can lead to strange looking code, too:

>>> ....__class__.__name__


More information about the Python-3000 mailing list