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 263 263 264 264 def class_to_int(k): 265 265 """ 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. 267 268 268 269 EXAMPLES: 269 270 sage: import sage.databases.cremona as cremona 270 271 sage: cremona.class_to_int('ba') 271 272 26 273 sage: cremona.class_to_int('cremona') 274 821863562 275 sage: cremona_letter_code(821863562) 276 'cremona' 272 277 """ 273 278 kk = [string.ascii_lowercase.index(ch) for ch in list(k)] 274 279 kk.reverse()