For example:

sage: import_statements(save)
from sage.structure.sage_object import save


On Tuesday, October 1, 2013 10:07:48 AM UTC+1, [email protected] wrote:
>
> I would like to precalculate something and use cython for that. For 
> example: 
>
> N=7 
> L = [ P for P in Posets(N) if min([len(P.lower_covers(a)) for a in 
> P.maximal_elements()]) >= 4 ] 
> save(L, '/some/where/L') 
>
> (Then later I can load 'L' and do some calculations with those posets 
> --- no need to (re)calculate L.) 
>
> How can I know what to import to get this work in cython? I already tried 
>
> from sage.all import Posets 
>
> but it doesn't seem to work. And what for save() -function? 
>
> -- 
> Jori M�ntysalo 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to