another near-sighted, time-wasting syntax enhancement idea

Carl Banks idot at vt.edu
Thu Jun 6 05:56:16 CEST 2002


class BigLongClassThatRunsUntilEOF::

def __init__ (self):
    pass

def whatever (self):
    pass

...



Two colons after the class (or whatever) definition means the block
continues until EOF and is not indented.  Good for big, long classes
that take up a whole module.  Been suggested before, I'm sure.


-- 
CARL BANKS



More information about the Python-list mailing list