Changes between Initial Version and Version 1 of Ticket #28112, comment 8
- Timestamp:
- 07/04/19 20:01:12 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28112, comment 8
initial v1 2 2 > 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? 3 3 4 Good point. Instead of having separate doctests, I think it is prefer rable 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.4 Good 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.