Thanks for the explanation.

On Tuesday, February 28, 2023 at 3:24:38 PM UTC+1 Dima Pasechnik wrote:

> On Tue, Feb 28, 2023 at 3:14 PM Tovo <[email protected]> wrote:
> >
> > I have sage 9.5 on Ubuntu 22.04/22.10.
> > I have the following code inside my files
> >
> > delta=simplicial_complexes.RandomComplex(4,1)
> > print(delta.facets())
> >
> > If the file is named as test.sage, the program works fine.
> > If the file is named as test.txt, the program outputs
> > delta=simplicial_complexes.RandomComplex(4,1)
> > NameError: name 'simplicial_complexes' is not defined
> >
> > Why does this happen?
> >
> this is because .sage files are pre-processed (turned into .py files,
> roughly speaking) on the fly,
> before being run.
>
> HTH
> Dima
>
> > --
> > 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/c0aa434d-f75f-486d-914a-1fcbeb90fdabn%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/db49afc0-9d57-4932-85a0-4e3f3895ccb3n%40googlegroups.com.

Reply via email to