[Python-ideas] 1_000_000

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 7 10:27:14 CEST 2011


Steven D'Aprano wrote:

> Like consecutive commas, consecutive underscores are likely to indicate 
> a typo rather than a deliberate decision.

Well, yes, that's really the rationale I had in mind.

Although it would provide an amusingly funky way of
introducing dividing line comments into your code:

class A:
     ...
     ...
     ...

0____________________________________0

class B:
     ...
     ...
     ...

You could even decorate it with scissors for a bit
more panache:

0_____8<0_____8<0_____8<0_____8<0_____0

-- 
Greg




More information about the Python-ideas mailing list