On Wednesday, January 25, 2017 at 3:50:33 AM UTC, pp wrote: > > Nope, I'm editing one file, outside Sage library. >
Sage is Python, too :-) Python's reload() works in Sage just as well. See http://stackoverflow.com/questions/1254370/reimport-a-module-in-python-while-interactive > > On Tuesday, January 24, 2017 at 11:53:32 PM UTC+8, John H Palmieri wrote: >> >> If you are editing a file in the Sage library, you need to run 'sage -b' >> to incorporate your changes. >> >> On Tuesday, January 24, 2017 at 12:58:26 AM UTC-8, pp wrote: >>> >>> Hi all, >>> I'm trying to import one Python module in Sage 7.3 (using `import`). It >>> is properly working. The problem arises when I edit this Python file: Sage >>> is still using the first version of the file. Even after I delete the >>> Python file, it still uses the first version of this file. >>> >>> Also, unlike Python, no `pyc` file is generated (I searched with `sudo >>> find . -name "<filename>.pyc"`). So, basically I cannot see any possible >>> way to import a Python module after it has been edited. >>> >>> Can anyone help? >>> >> -- 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 https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
