Ticket #3869: trac3869-extra-doctest.patch

File trac3869-extra-doctest.patch, 0.9 kB (added by cwitty, 5 months ago)
  • a/sage/databases/cremona.py

    old new  
    263263 
    264264def class_to_int(k): 
    265265    """ 
    266     Converts class id string into an integer. 
     266    Converts class id string into an integer.  Note that this is the 
     267    inverse of cremona_letter_code. 
    267268 
    268269    EXAMPLES: 
    269270        sage: import sage.databases.cremona as cremona 
    270271        sage: cremona.class_to_int('ba') 
    271272        26 
     273        sage: cremona.class_to_int('cremona') 
     274        821863562 
     275        sage: cremona_letter_code(821863562) 
     276        'cremona' 
    272277    """  
    273278    kk = [string.ascii_lowercase.index(ch) for ch in list(k)] 
    274279    kk.reverse()