I'd expect it's (1). A more nuanced version might be:(5) As a rule, an Integer should probably be returned if the code is probably going to interact with other sage code, but if you have good (efficiency) reasons to prefer a python integer or if the primary function is to be compatible with other python code (such as "len" methods) then returning a python integer should be fine.
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/553f7cad-3dcc-4a8c-a3c8-916e7b5706d8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAChs6_%3Dm38VsmkqAqv9dMB2%3DSyb%2BfmNPZANrsAcwmG6JacXGww%40mail.gmail.com.
I think that we should prefer tuples to lists when that is appropriate, lists to tuples when that is appropriate. Python has both types for good reasons, I think, and I don't see why we should globally recommend one over the other.