Subj : Re: Equivalent of JS_InitClass for global object? To : netscape.public.mozilla.jseng From : Brendan Eich Date : Sun Aug 24 2003 07:55 pm David Bradley wrote: > John J. Lee wrote: > >> I've written a Javascript/Python bridge. I can implement Javascript >> objects in Python, except for one case: I can't implement the JS >> global object in Python (in particular, I want to implement the >> "window" object found in web browsers' object models). > > > Have you looked a PyConnect? The code may be in a bit of disarray, not > sure how well maintained it is, but it might be an easier task to get > it in order than reinvent it: > http://lxr.mozilla.org/mozilla/source/extensions/python/xpcom/ Mark Hammond has updaged it recently. I think it works. /be .