[Zope-dev] Announce: PythonMethod 0.0.1

Martijn Faassen m.faassen@vet.uu.nl
Wed, 08 Sep 1999 11:55:14 +0200


Evan Simpson wrote:
> 
> Martijn Faassen wrote:
> 
> > Does it do any kind of cut-off after too many bytecodes are executed
> > already? I wasn't able to find a reference to this in the docs so I
> > assume not. It'd be very neat if it did that, though. :)
> 
> It sure would be.  Sadly, while I've been told that this might be possible in a
> generic fashion, the only way I *know* how to do it is to insert a lot of test
> code near jumps.  Implementing that is way down my list.

Do take a look at Will Wares' microthreads. It's a hack, but it's
transparent. It lets you import a module that contains a modified Python
interpreter that can do this.

Regards,

Martijn