Changes between Initial Version and Version 1 of Ticket #28112, comment 8


Ignore:
Timestamp:
07/04/19 20:01:12 (2 years ago)
Author:
gh-mwageringel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28112, comment 8

    initial v1  
    22> I would prefer not to use `long` in doctests, since it is not supported in Python 3. The only reason it works in Sage now is because of a hack that converts `long` to `int` when using Python 3. Maybe instead separate doctests?
    33
    4 Good point. Instead of having separate doctests, I think it is preferrable to replace `long(n)` by `int(n)` which should work in both Python 2 and 3. In Python 2, it will still return a `long` if the number is too large.
     4Good point. Instead of having separate doctests, I think it is preferable to replace `long(n)` by `int(n)` which should work in both Python 2 and 3. In Python 2, it will still return a `long` if the number is too large.