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.

Global Object specification

#9

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.

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

State: resolved
Milestone: none
Assigned to: Paul J. Davis Paul J. Davis

Activity

  1. Paul J. Davis
    Paul J. Davis
    • 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;")
    'bar'
    
    

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

    May 10th, 2009 @ 05:28 PM

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.