durusmail: quixote-users: PTL and strings
PTL and strings
2004-05-10
2004-05-10
2004-05-11
2004-05-10
PTL and strings
A.M. Kuchling
2004-05-10
On Mon, May 10, 2004 at 12:55:21PM -0700, vincent delft wrote:
> - asking developers to identify the html related lines
> by using a function (does not matter the name). This
> is probably the most simple method, but it's not
> backward compatible and will disturb current habits.

You can do this yourself by just aliasing the htmltext type:

>>> from quixote.html import htmltext as h
>>> h('%s') % ''
<tags>'>

It's extremely unlikely that Quixote would ever automatically insert
'h' or 'htmltext' into Python's builtins, so this is as good as
anything that could be implemented.

--amk



reply