On Tue, Oct 01, 2002 at 04:26:58PM -0400, Greg Ward wrote: > Neil and I talked about this yesterday, and I suggested a "from > __future__" hack quite seriously. The PTL compiler could look for it at > the same time it scans for "^\s*template\b" lines. I'm starting on converting some of our templates. It looks like a per-module switch is not going to work. For example, if the Quixote form framework is converted to use the magic literals then stuff will probably end up getting quoted when it shouldn't. > > - Markup('some text') looks an awful lot like a verb - but marking up is > > exactly what is *not* happening in that case. How about MarkedUp, > > UnQuoted, TrustedText, or something like that? > > How about SafeText (or safestr if this is to be a 2.2-style subclass of > str)? Unfortunately a subclass of str will not work due to a bug in 2.2. I filed a bug and it should be fixed in 2.3 but until then we will have to use a wrapper around str instead of a subclass. Neil