2015-06-09 13:11:12 +0200 | received badge | ● Student (source) |
2015-06-09 11:25:40 +0200 | asked a question | How to index lua tables with sage integer We would like to use Lua integration within Sage. For this, can use Python Lupa. To install it, we first set PYTHONPATH as below: Everything works as expected, except indexing a table with integers (and maybe floats). It seems that the problem comes from Sage integer wrapping. Lupa performs an automatic conversion between Python integers and Lua integers, but is not aware of Sage integers. Indeed, we can use strings/booleans in order to index tables: |