-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from patrick-csliu/refactor/src
refactor src
- Loading branch information
Showing
5 changed files
with
23 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""module run.py docstring""" | ||
|
||
from . import _mydemo | ||
|
||
def hello(): | ||
"""test message""" | ||
print('Hello world, this is "run.py"') | ||
|
||
def mydemo(): | ||
print("_mydemo.print_hello()") | ||
output = _mydemo.print_hello() | ||
print("output:", output) | ||
print(f"__doc__ = {_mydemo.__doc__}") | ||
print(f"__file__ = {_mydemo.__file__}") | ||
print(f"__name__ = {_mydemo.__name__}") | ||
print(f"__package__ = {_mydemo.__package__}") |
This file was deleted.
Oops, something went wrong.
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,10 +1,6 @@ | ||
"""test package""" | ||
|
||
from testpackage import run | ||
from testpackage import mydemo | ||
from testpackage import main | ||
|
||
print(run.cos10()) | ||
run.hello() | ||
|
||
value = mydemo.print_hello() | ||
print(f"output from mydemo.print_hello(): {value}") | ||
main.hello() | ||
main.mydemo() |