Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [4d971051b2f223e6a68154a57f61a7024dad598b] by Paul Davis

Revision 4d971051b2f223e6a68154a57f61a7024dad598b, committed by Paul Davis · May 10th, 2009 @ 05:25 PM

Support for global property handlers.

If you want to be able to global properties using some sort of active logic you can now pass an object that has getitem and setitem defined to Runtime.new_context(). Something like:

>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context({"foo": "bar"})
>>> cx.execute("foo;")
'bar'

[#9 state:resolved] http://github.com/davisp/python-...

4 changed files

  • M spidermonkey/context.c
  • M spidermonkey/context.h
  • M spidermonkey/runtime.c
  • M tests/test-global.py