Python IS slow ! [was] Re: Python too slow for real world

Amit Patel amitp at Xenon.Stanford.EDU
Fri Apr 30 13:55:35 EDT 1999


 Michael Hudson  <mwh21 at cam.ac.uk> wrote:
| 
| A word of warning: this code is nasty, *nasty*, NASTY.  Possibly the
| most horrible thing you will see perpetrated in Python this year. It
| applies regular expressions to strings of bytecode...

[code removed]

| def make_adder(n):
|     def adder(x):
|         return x+n
|     return bind_locals(adder)




Yow.

I think you are INSANE.  :-)  I thought bind_locals was impossible to
implement in Python, and you go and implement it.  Eek!




  Amit, too afraid to use bind_locals




More information about the Python-list mailing list