|
Re: PyGame slowdown: msg#00229python.pygame
> Pysco combined with this decorator makes even more fun: > http://blogs.nuxeo.com/sections/blogs/tarek_ziade/2005_09_24_yadi-part-2-simple-psyco-decorator Yep, I use something similar, except I catch an ImportError, which enables cross platformness with my Mac friends :-) I should probably catch the TypeError as well. def psycoize(func): try: import psyco except ImportError: return func return psyco.proxy(func) |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: PyGame slowdown: 00229, Marek Kubica |
|---|---|
| Next by Date: | Optimization Fun: 00229, Simon Wittber |
| Previous by Thread: | Re: PyGame slowdowni: 00229, Marek Kubica |
| Next by Thread: | Re: PyGame slowdown: 00229, Jasper |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |