Skip to content

Philippe/fix/176 plus - #204

Merged
philippedistributive merged 62 commits into
mainfrom
philippe/fix/176-plus
Jan 24, 2024
Merged

philippedistributive merged 62 commits into
mainfrom
philippe/fix/176-plus

Conversation

@philippedistributive

@philippedistributive philippedistributive commented Dec 22, 2023 •

Copy link
Copy Markdown
Contributor

Enhances the Proxy that enables Python List to JS Array conversion behavior, when lists are used in an array context

closes #176
closes #201

@zollqir zollqir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few missing tests to write, .sort() behaviour is a bit off, and I think using array_copy_func in PyProxyHandler.cc can lead to incorrect behaviour on a number of methods, particularly in the case where the method takes a callback and the callback mutates the array. See my comments for more details.

Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread src/PyProxyHandler.cc Resolved
Comment thread src/PyProxyHandler.cc Resolved
Comment thread src/PyProxyHandler.cc Resolved
Comment thread src/PyProxyHandler.cc Resolved
Comment thread tests/python/test_arrays.py Resolved
philippe-distributive and others added 13 commits January 3, 2024 16:15
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Co-authored-by: Caleb Aikens <caleb@distributive.network>
Comment thread setup.sh Resolved
Comment thread tests/python/test_arrays.py Resolved
assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>"
assert str(e).__contains__("TypeError: forEach: At least 1 argument required, but only 0 passed")

#map

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Responded above

Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread tests/python/test_arrays.py Resolved
Comment thread src/PyProxyHandler.cc Resolved

@zollqir zollqir left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@philippedistributive
philippedistributive merged commit 71a0483 into main Jan 24, 2024
@philippedistributive
philippedistributive deleted the philippe/fix/176-plus branch January 24, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement support for JS methods on Python objects Lists are converted to objects instead of arrays

3 participants