another near-sighted, time-wasting syntax enhancement idea

Carl Banks idot at vt.edu
Wed Jun 5 23:56:16 EDT 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