another near-sighted, time-wasting syntax enhancement idea
Chris Liechti
cliechti at gmx.net
Thu Jun 6 18:31:13 EDT 2002
idot at vt.edu (Carl Banks) wrote in
news:e395b886.0206051956.5f447e9b at posting.google.com:
> 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.
i don't see any advantages for that. it's a very suptile difference almost
not viewable those "::", it makes code bad readable.
doesn't your editor has auto indentation? don't use notepad an switch to a
real editor <wink>.
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list