[Python-Dev] odd interpreter feature
Pat Miller
patmiller@llnl.gov
Wed, 07 May 2003 10:25:57 -0700
Skip writes:
> >>> # hello:
> ...
> >>>
>
> Shouldn't the trailing colon be ignored in comments? Bug, feature or wart?
I figured it was a feature... Taking the view that any source block asks
for continuations seemed natural, so I assumed Guido intended it that way ;-)
If the comments were active objects (like doc strings), then it would
be the desired association.
>>> # About to do something tricky
... tricky()
>>>
Pat
--
Patrick Miller | (925) 423-0309 | http://www.llnl.gov/CASC/people/pmiller
All you need in this life is ignorance and confidence, and then success is
sure. -- Mark Twain