Ticket #12988: trac_12988_padic.patch

File trac_12988_padic.patch, 565 bytes (added by saraedum, 8 years ago)

fix characteristic for padics

  • sage/rings/padics/padic_generic.py

    # HG changeset patch
    # User Julian Rueth <julian.rueth@gmail.com>
    Trac 12988: fixed characteristic for p-adic rings
    
    diff --git a/sage/rings/padics/padic_generic.py b/sage/rings/padics/padic_generic.py
    index bff9574..f6f4102 100644
    a b class pAdicGeneric(PrincipalIdealDomain, LocalGeneric): 
    190190            sage: R = Zp(3, 10,'fixed-mod'); R.characteristic()
    191191            0
    192192        """
    193         return 0
     193        return Integer(0)
    194194
    195195    def prime(self):
    196196        """