This repository has been archived by the owner on May 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the new function run that will automatically extract code and r…
…un as a script
- Loading branch information
1 parent
c2e10ec
commit e67a2b5
Showing
3 changed files
with
96 additions
and
56 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
|
||
from cyther import * | ||
from subprocess import call | ||
|
||
''' | ||
@cyther | ||
a = ''.join([str(x) for x in range(10)]) | ||
if a != '0123456789': | ||
raise CytherError("The @ code doesn't work correctly") | ||
''' | ||
|
||
core('example_file.pyx') | ||
call(['python', 'cytherize.py', 'example_file.pyx', '-t']) | ||
core('-h') | ||
call(['python', 'cytherize.py', 'example_file.pyx', '-t']) | ||
|
||
run(__file__) | ||
run(__file__, timer=True) |