Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Python - __name__
furas
Sep 7th, 2016
293
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
main
(
)
:
print
(
"test2.py, main(), __name__:"
,
__name__
)
# ---------------------------------
if
__name__
==
"__main__"
:
print
(
"run directly"
)
main
(
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
9 min ago | 9.04 KB
Untitled
1 hour ago | 5.87 KB
Untitled
6 hours ago | 7.54 KB
Untitled
7 hours ago | 5.23 KB
Untitled
8 hours ago | 7.19 KB
Untitled
10 hours ago | 7.04 KB
Untitled
11 hours ago | 6.53 KB
Untitled
14 hours ago | 12.03 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!