Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending multiple return values in python and get in android using chaquopy

Is it possible to get multiple values in android which is sent by python class using Chaquopy?

like image 978
hdiz Avatar asked Jun 24 '26 18:06

hdiz


1 Answers

When a Python function returns multiple values (using the return a, b, c syntax), it's actually returning a tuple. The easiest way to access the individual values in Java or Kotlin is to use PyObject.asList.

like image 121
mhsmith Avatar answered Jun 26 '26 08:06

mhsmith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!