Skip to content

Commit 1c8a69c

Browse files
committed
starter code for __main__
1 parent df3ea71 commit 1c8a69c

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

code/ch_06_packages/_02_what_is___main__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
print("About to import _02_what_is___main__support")
2-
31
# noinspection PyProtectedMember
42
import ch_06_packages._02_what_is___main__support as s
53

6-
print("Done importing _02_what_is___main__support")
7-
84

95
def main():
106
print()

code/ch_06_packages/_02_what_is___main__support.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@ class AClass:
88

99
var = "A Variable"
1010

11-
print(" -----------> This is code executed on import")
12-
print("The name of the support module is {}".format(__name__))
1311

0 commit comments

Comments
 (0)