2015-06-09 13:11:12 +0100 | received badge | ● Student (source) |

2015-06-09 11:25:40 +0100 | 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: |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.