Closed philippedistributive closed 3 months ago
Bug
None
No response
python --version
pip show pythonmonkey
if JS class being iterated over in python context defines Symbol.iterator, use it.
Right now we do: Get the JS keys using the JSITER_OWNONLY flag which has semantics:
iterate over obj's own properties only -> Get enumerable own properties
This was a misguided effort, what we are doing is providing a Python mechanism on a JS object. We are following Python semantics
Issue type
Bug
How did you install PythonMonkey?
None
OS platform and distribution
No response
Python version (
python --version
)No response
PythonMonkey version (
pip show pythonmonkey
)No response
Bug Description
if JS class being iterated over in python context defines Symbol.iterator, use it.
Right now we do: Get the JS keys using the JSITER_OWNONLY flag which has semantics:
iterate over obj's own properties only -> Get enumerable own properties
Standalone code to reproduce the issue
No response
Relevant log output or backtrace
No response
Additional info if applicable
No response
What branch of PythonMonkey were you developing on? (If applicable)
No response