On Tue, Mar 5, 2013 at 7:31 PM, Nicolas M. Thiery <nicolas.thi...@u-psud.fr> wrote: > Hi Robert, Volker and other fans of lazy import! > > Working on #4327 made me want to be able to lazy import a full > module. That is have: > > lazy_import("sage.combinat.root_system.plot") > > be a lazy analogue of: > > import sage.combinat.root_system.plot > > Currently lazy_import complains that it wants two arguments. So I > tried this: > > sage: lazy_import('sage.combinat.root_system', 'plot') > sage: plot > /opt/sage/sage : ligne 135 : 8765 Erreur de segmentation (core dumped) > "$SAGE_ROOT/spkg/bin/sage" "$@" > Process SAGE exited abnormally with code 139 > > Oops! > > So two questions: > > - Is there an easy way to protect ourselves from this segfault?
Could you try running this with sage -gdb? > - Would it be easy to allow for lazy importing modules? > In the case at hand, I would like sage.combinat.root_system.plot to > not be imported by default in Sage. Yet I would want: > > sage.combinat.root_system.plot? > > to give the documentation of this module (a detailed tutorial in this > case). I don't see any reason why this shouldn't be possible (in fact rather easy) to support. - Robert -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.