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 [ddb81d443f4ec0fcf773ee46a6072d1321cba06f] by Paul Davis

Revision ddb81d443f4ec0fcf773ee46a6072d1321cba06f, committed by Paul Davis · May 9th, 2009 @ 09:47 PM

Iteration over JavaSript objects in Python.

You can now do the 'for val in obj' syntax when obj is a wrapped JavaScript object.

Thanks Mark Lee for the patch showing how to do this for arrays.

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

9 changed files

  • M THANKS
  • M spidermonkey/jsarray.c
  • M spidermonkey/jsiterator.c
  • M spidermonkey/jsiterator.h
  • M spidermonkey/jsobject.c
  • M spidermonkey/spidermonkey.c
  • M spidermonkey/spidermonkey.h
  • M tests/t.py
  • M tests/test-iterate.py