On Wednesday 13 March 2002 08:11 am, Geoffrey Talvola wrote: > And a third thought is that you don't actually need to do _anything_ > to PSP to get this to work. �All you need to do is assign to str at > the top of your PSP: > > ��������<%str = self.htForValue%> > > but that seems a bit too sneaky and could break if PSP's > implementation changed to not use str() in the future.
This approach is tempting because it works today and it would be efficient. However, it could also break any legit Python code _you_ write that uses str(). I think PSP will need to use a "strForPSP" identifier (rather than "str") which is then assigned to either str or the formatter specified by <%@ page formatter="foo" %>. Note that function/method calls ARE expensive in Python. I've seen that stated on c.l.p. and I got a big speed up in the CSVParser just by unwrapping a couple common calls. Using the assignment to "strForPSP" will keep things efficient for both default and custom cases. -Chuck _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
