#17818: Interface to FindStat
-------------------------------------+-------------------------------------
       Reporter:  mantepse           |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.6
      Component:  interfaces         |   Resolution:
       Keywords:  FindStat           |    Merged in:
        Authors:  Martin Rubey       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:  public/findstat-   |       Commit:
  interface                          |  9adb2b5db3f77f1a0fcadd665bcc5cf6ee73cf77
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Hello,

 Looks better now ;-)

 Could you use a lazy import in the "all.py". What it means is that you
 have to replace
 {{{
 from sage.databases.findstat import findstat
 }}}
 with
 {{{
 from sage.misc.lazy_import import lazy_import
 lazy_import('sage.databases.findstat', 'findstat')
 }}}

 What it changes is that you will have:
 {{{
 sage: type(findstat)
 <type 'sage.misc.lazy_import.LazyImport'>
 }}}
 but mostly nothing else (access to method, tab completion, documentation
 is identical). The advantage is that it is not imported on startup. It
 would be really good since you are doing a lot of global imports in your
 module.

 Vincent

--
Ticket URL: <http://trac.sagemath.org/ticket/17818#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to