On 2014-12-01 14:54, Nathann Cohen wrote:
Hello everybody !

I just met two situations in which we need to rename a module: 1) not
in the right folder; or 2) not the right name.

Use lazy imports.

Have a deprecated module containing

from sage.misc.lazy_import import lazy_import
lazy_import('new_module', '*', deprecation=...)

This will lazily-import-with-deprecation everything from new_module into old_module.

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to