10c8 / paper

Develop applications for Pythonista using web tools.
MIT License
8 stars 0 forks source link

Passing a Python object as an argument should be implemented. #4

Closed 10c8 closed 7 years ago

10c8 commented 7 years ago

For functions that take a Python object, a function, for example, there should be a way to pass the Python object (not the PyObj reference) as an argument.

10c8 commented 7 years ago

PyObjs are passed as arguments as dicts. These have the attributes type set to object and __id__ set to the Python object's (that it is referencing) ID. I made it convert to the object with that ID stored in _py_objs and it works.