~soto255/pyjavascriptcore/trunk

Viewing all changes in revision 64.

  • Committer: Martín Soto
  • Date: 2010-04-05 14:48:06 UTC
  • Revision ID: soto@masoft-20100405144806-ixgqn3x8clrp5szz
Fix GIL handling in the JavaScript to Python wrappers

All functions registered as callbacks with JavaScriptCore and using
functions in the Python interpreter should acquire the GIL. Several
weren't in practice. Thanks to <dauerbaustelle@jabber.lophus.org> (Bug
#554299) for pointing this out.

* javascriptcore.pyx (pyObjDeleteProperty, finalizeCb, pySeqHasProperty) 
  (pySeqDeleteProperty, pyMapGetPropertyNames, pyMapDeleteProperty): Add
  a "with gil" clause.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: