Ticket #10209: trac_10209.patch

File trac_10209.patch, 802 bytes (added by Alex Ghitza, 12 years ago)
  • sage/modular/modform/vm_basis.py

    # HG changeset patch
    # User Alexandru Ghitza <aghitza@alum.mit.edu>
    # Date 1288856511 -39600
    # Node ID 202a5661f432801769c83c3b26b7b8a9bb38693f
    # Parent  120c07be6358d93bcff503363d379c26b8342f2b
    trac #10209: typo in vm_basis.py causes unnecessary slowness
    
    diff -r 120c07be6358 -r 202a5661f432 sage/modular/modform/vm_basis.py
    a b  
    317317    - Martin Raum (2009-08-02): use FLINT for polynomial arithmetic (instead of NTL)
    318318    """
    319319    R = PowerSeriesRing(K, var)
    320     if R is ZZ or R is QQ:
     320    if K in (ZZ, QQ):
    321321        return R(_delta_poly(prec).list(), prec, check=False)
    322322    else:
    323323        return R(_delta_poly(prec).list(), prec, check=True)