Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit c554704

Browse files
author
Matthias Koeppe
committed
src/doc/en/developer/coding_in_python.rst: Fix up for cachefunc
1 parent 26650f9 commit c554704

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/en/developer/coding_in_python.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ for a new module.
559559
If your module needs to make some precomputed data available at the top level,
560560
you can reduce its load time (and thus startup time, unless your module is
561561
imported using :mod:`sage.misc.lazy_import`) by using the decorator
562-
:func:`sage.misc.cache_func.cached_function` instead. For example, replace
562+
:func:`sage.misc.cachefunc.cached_function` instead. For example, replace
563563

564564
.. CODE-BLOCK:: python
565565
@@ -569,6 +569,8 @@ by
569569

570570
.. CODE-BLOCK:: python
571571
572+
from sage.misc.cachefunc import cached_function
573+
572574
@cached_function # good: runs on first use
573575
def big_data():
574576
return initialize_big_data()

0 commit comments

Comments
 (0)