Out-denting multiline comments

Steve Holden sholden at holdenweb.com
Mon Aug 12 13:49:07 CEST 2002


"Delaney, Timothy" <tdelaney at avaya.com> wrote ...
> > From: bokr at oz.net [mailto:bokr at oz.net]
> >
> > ISTM the real question is if you could get a compile-time way
> > of adjusting
> > the string that is indented on the source, so as not be
> > indented in its definition.
>
> Why add syntax? The easiest way to do this would be with a __metaclass__
...
> which has the advantage that you can do it Right Now.
>

Unfortunately there would appear to be no way to persuade the compiler to
use that metaclass when compiling string literals, so its use would be
syntactically less convenient.

me-i'm-happy-with-strings-the-way-they-are-ly y'rs  - steve
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list