Ticket #9958: trac_9958_enumerate64bit.patch

File trac_9958_enumerate64bit.patch, 806 bytes (added by fbissey, 10 years ago)

fix the doctest on enumeration order for 64bit system

  • sage/combinat/words/nfactor_enumerable_word.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1320286243 -46800
    # Node ID d9fc8f79c08061fefd6e4a709ddff2b8354d835a
    # Parent  2e2e57633995f1f349c70ab39278f4fb6275dac2
    trac 9958: fix enumeration order on 64bit system with python-2.7
    
    diff --git a/sage/combinat/words/nfactor_enumerable_word.py b/sage/combinat/words/nfactor_enumerable_word.py
    a b  
    1818    sage: w = Word([4,5,6])^7
    1919    sage: it = w.factor_iterator(4)
    2020    sage: it.next()
    21     word: 6456
     21    word: 6456 # 32-bit
     22    word: 5645 # 64-bit
    2223    sage: it.next()
    23     word: 5645
     24    word: 5645 # 32-bit
     25    word: 6456 # 64-bit
    2426    sage: it.next()
    2527    word: 4564
    2628    sage: it.next()