Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is bug report on python3-build sage. When attaching a file which loads a pyx file, the reloading fails. Steps to reproduce: create a file "test.py" with {{{ from sage.misc.persist import load load("anyfile.pyx") def cool(n): return -n }}} and a pyx file with the chosen name. Then attach the test.py file. This should compile the pyx file. Then modify a function in the test.py file and save it. Then one gets an error: {{{ ### reloading attached file test.py modified at 16:49:10 ### File "<string>", line 1 from _home_chapoton_anyfile_pyx_0.cpython-36m-x86_64-linux-gnu import * ^ SyntaxError: invalid syntax }}} I suspect that maybe the issue is the presence of `-` in the name of the created python module. URL: https://trac.sagemath.org/27472 Reported by: chapoton Ticket author(s): Erik Bray, Frédéric Chapoton Reviewer(s): François Bissey
- Loading branch information
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters