10c8 / paper

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

Standard JavaScript operators don't work with Python object references. #5

Open 10c8 opened 8 years ago

10c8 commented 8 years ago

No mathematical operations can be done on Python object references through JavaScript using the standard operators (+, -...). That happens because Python object references (PyObjs) are seen in JavaScript as dicts.

10c8 commented 8 years ago

Added PaperUtil (shorthand: pyutil) as a workaround. Has some helper functions, including add, sub, div and mul.