Add array iterator support
Reported by Mark Lee | May 7th, 2009 @ 04:39 AM
I added the ability to iterate over Spidermonkey.Array objects (with a unit test). It's in my fork: http://github.com/malept/python-...
Comments and changes to this ticket
-
Paul J. Davis May 7th, 2009 @ 06:36 PM
Awesome! I hadn't the slightest that PySeqIter_New existed. I'll pull this in later tonight.
-
Paul J. Davis May 7th, 2009 @ 06:36 PM
- State changed from new to open
-
Paul J. Davis May 9th, 2009 @ 09:49 PM
- State changed from open to resolved
(from [ddb81d443f4ec0fcf773ee46a6072d1321cba06f]) 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-...
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.
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
- 10 Add array iterator support [#10 state:resolved] http://github.com/davisp/python-...