[Python-Dev] Re: native code compiler? (or, OCaml vs. Python) (original) (raw)

Skip Montanaro skip@pobox.com
Mon, 3 Feb 2003 15:28:21 -0600


Guido> And I suggest that we analyze pystone (or whatever benchmark we
Guido> decide to use).

If you decide to use pystone, I'd argue you incorporate psyco into the distribution and stick the following code right after the definition of Proc8:

try:
    import psyco
except ImportError:
    pass
else:
    psyco.bind(Proc8)

(I believe that's the correct psyco call and the correct function to optimize. It's been awhile.)

;-)

Skip