Ticket #3897: 3897-deprecation.2.patch

File 3897-deprecation.2.patch, 1.0 KB (added by John Cremona, 14 years ago)
  • sage/schemes/elliptic_curves/ell_number_field.py

    # HG changeset patch
    # User Alexandru Ghitza <aghitza@alum.mit.edu>
    # Date 1222163554 -3600
    # Node ID 9cf2065e92742306273fa8106f74adfedfc7726f
    # Parent  ae41d53e73be502bed9b220fc7e90a25474ed7f2
    trac 3897: deprecate local_information
    
    diff -r ae41d53e73be -r 9cf2065e9274 sage/schemes/elliptic_curves/ell_number_field.py
    a b class EllipticCurve_number_field(Ellipti 
    305305            t = ZK([(a/2).round('up') for a in (-a3 - r*a1).list()])
    306306
    307307        return self.rst_transform(r, s, t)
     308
     309    def local_information(self, P=None, proof=None):
     310        r"""
     311        \code{local_information} has been renamed \code{local_data}
     312        and is being deprecated.
     313        """
     314        raise DeprecationWarning, "local_information is deprecated; use local_data instead"
     315        return self.local_data(P,proof)
    308316
    309317    def local_data(self, P=None, proof = None):
    310318        r"""