durusmail: quixote-users: Illegal Python Names cookbook recipe
Illegal Python Names cookbook recipe
2004-04-05
2004-04-05
2004-04-05
Bug fixes (was: Illegal Python Names cookbook recipe)
2004-04-07
2004-04-07
Bug fixes (was: Illegal Python Names cookbookrecipe)
2004-04-07
Patches for .7a3
2004-04-07
Re: Patches for .7a3
2004-04-08
StaticFile is broken (Quixote-0.7a3, scgi-1.2a2, Apache/1.3.27, FreeBSD 4.7)
2004-04-08
Re: Patches for .7a3
2004-04-21
2004-04-21
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-06
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
Re: Illegal Python Names cookbook recipe
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-07
2004-04-08
2004-04-07
2004-04-07
2004-04-07
2004-04-06
2004-04-05
2004-04-05
2004-04-05
Re: R: [Quixote-users] Illegal Python Names cookbook recipe
2004-04-06
Illegal Python Names cookbook recipe
Neil Schemenauer
2004-04-05
On Mon, Apr 05, 2004 at 04:32:09PM -0500, Jason E. Sibre wrote:
> Another idea for modifying the _q_exports handling... Trying to
> have least performance impact, least code changes to code that's
> already stable:

The performance impact should be negligible.  Instead of 'component
in container._q_exports', we would have:

        for val in exports:
            if val == name:
                result = name
                break
            elif type(val) is types.TupleType:
                if val[0] == name:
                    result = val[1]
                    break
        else:
            result = None

For a reasonably short exports list my workstation can do that about
300000 times a second.   Thank you AMD. :-)

  Neil


reply