Changes between Initial Version and Version 6 of Ticket #27696


Ignore:
Timestamp:
05/13/19 22:41:02 (6 months ago)
Author:
jhpalmieri
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27696

    • Property Status changed from new to needs_info
    • Property Summary changed from py3: deprecate long and __long__, and remove doctesting special-case for long to metaticket: py3: deprecate long and __long__, and remove doctesting special-case for long
    • Property Milestone changed from sage-8.8 to sage-wishlist
  • Ticket #27696 – Description

    initial v6  
    1 The main point of this ticket is this change:
     1The overarching goal this ticket is to make this change:
    22{{{
    33#!diff
     
    3030}}}
    3131With Python 3 doctesting, `long` has been automatically converted to `int`. It would be better to not have such a big difference in the behavior of doctesting vs. ordinary Sage usage: with Python 3, evaluating `long(3)` would fail at the command line but work in doctesting.
     32
     33First we should deprecate `__long__` methods for Sage classes, and we should also designate doctests involving `long(...)` as being `py2` only. Once enough of those tasks have been complete, we can make this change to the doctesting framework.
     34
     35---------
     36
     37See #27826 for a collection of deprecations. This is not complete: that ticket does not deprecate `__long__` for integers and rational numbers.