#9 ✓resolved
Paul J. Davis

Global Object specification

Reported by Paul J. Davis | May 6th, 2009 @ 09:42 AM

I need to update the code to be able to specify a root object. Hopefully this is as easy as I think it should be.

Comments and changes to this ticket

  • Paul J. Davis

    Paul J. Davis May 10th, 2009 @ 05:28 PM

    • State changed from “new” to “resolved”

    (from [4d971051b2f223e6a68154a57f61a7024dad598b]) 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;")

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

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.

People watching this ticket

Referenced by