You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
It'd be nice to be able to specify you want a tuple when the Python function returns an array or yields back. Jade suggested that we might be able to get this to work if we rely on PySequence_GetItem or if we do a check for an iterator or generator. But we felt this shouldn't hold up #26946
Is this issue currently blocking your progress?
Nope, just seemed cool to support
Code Sample
(Not complete)
def foo():return[1, 2, 3]
def bar():yield1yield2var t = foo(3*int); // for this to work, you need to do `PySequence_GetItem`var t2 = bar(2*int); // for this to work, you need to check for a iterator/generator
The text was updated successfully, but these errors were encountered:
Summary of Feature
Description:
It'd be nice to be able to specify you want a tuple when the Python function returns an array or yields back. Jade suggested that we might be able to get this to work if we rely on
PySequence_GetItem
or if we do a check for an iterator or generator. But we felt this shouldn't hold up #26946Is this issue currently blocking your progress?
Nope, just seemed cool to support
Code Sample
(Not complete)
The text was updated successfully, but these errors were encountered: