Ticket #9054: trac_9054_pickling.2.patch

File trac_9054_pickling.2.patch, 1.1 KB (added by saraedum, 6 years ago)

fix pickling for extensions of function fields

  • sage/rings/function_field/constructor.py

    # HG changeset patch
    # User Julian Rueth <julian.rueth@gmail.com>
    # Date 1321013796 28800
    # Node ID 317e859c0d2ffc86547499571c1f15f4011c2cb1
    # Parent  ea60614cb5d0a712cdaac4e2a5b1a65fba50db7a
    Trac 9054: fix pickling for extensions of function fields
    
    diff --git a/sage/rings/function_field/constructor.py b/sage/rings/function_field/constructor.py
    a b  
    7474        from function_field import RationalFunctionField
    7575        return RationalFunctionField(key[0], names=key[1])
    7676
    77 FunctionField = FunctionFieldFactory("FunctionField")
     77FunctionField = FunctionFieldFactory("sage.rings.function_field.constructor.FunctionField")
    7878
    7979class FunctionFieldPolymodFactory(UniqueFactory):
    8080    """
     
    113113        from function_field import FunctionField_polymod
    114114        return FunctionField_polymod(key[0], names=key[1])
    115115
    116 FunctionField_polymod = FunctionFieldPolymodFactory("FunctionField_polymod")
     116FunctionField_polymod = FunctionFieldPolymodFactory("sage.rings.function_field.constructor.FunctionField_polymod")