@@ -2226,7 +2226,10 @@ cdef class ElementWithCachedMethod(Element):
2226
2226
....: "cdef class MyParent(Parent):",
2227
2227
....: " Element = MyElement" ]
2228
2228
sage: cython( '\n '. join( cython_code)) # optional - sage. misc. cython
2229
- sage: cython_code = ["from sage.all import cached_method, cached_in_parent_method, Category, Objects",
2229
+ sage: cython_code = ["from sage.misc.cachefunc import cached_method",
2230
+ ....: "from sage.misc.cachefunc import cached_in_parent_method",
2231
+ ....: "from sage.categories.category import Category",
2232
+ ....: "from sage.categories.objects import Objects",
2230
2233
....: "class MyCategory(Category):",
2231
2234
....: " @cached_method",
2232
2235
....: " def super_categories(self):",
@@ -2325,7 +2328,10 @@ cdef class ElementWithCachedMethod(Element):
2325
2328
....: from sage.structure.parent cimport Parent
2326
2329
....: cdef class MyParent(Parent):
2327
2330
....: Element = MyElement
2328
- ....: from sage.all import cached_method, lazy_attribute, Category, Objects
2331
+ ....: from sage.misc.cachefunc import cached_method
2332
+ ....: from sage.misc.cachefunc import cached_in_parent_method
2333
+ ....: from sage.categories.category import Category
2334
+ ....: from sage.categories.objects import Objects
2329
2335
....: class MyCategory(Category):
2330
2336
....: @cached_method
2331
2337
....: def super_categories(self):
@@ -4048,7 +4054,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
4048
4054
if not isinstance (right, Element):
4049
4055
right = right.sage()
4050
4056
from sage.arith.misc import GCD as gcd
4051
- from sage.arith.all import gcd
4057
+ from sage.arith.misc import GCD as gcd
4052
4058
return coercion_model.bin_op(self , right, gcd)
4053
4059
return self ._gcd(right)
4054
4060
@@ -4082,7 +4088,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
4082
4088
if not isinstance (right, Element):
4083
4089
right = right.sage()
4084
4090
from sage.arith.functions import lcm
4085
- from sage.arith.all import lcm
4091
+ from sage.arith.functions import lcm
4086
4092
return coercion_model.bin_op(self , right, lcm)
4087
4093
return self ._lcm(right)
4088
4094
0 commit comments