printing inside and outside of main() module

korean_dave davidreynon at gmail.com
Wed Apr 30 11:21:17 EDT 2008


This allows me to see output:

---begin of try.py
print "Hello World"
--end of try.py

This DOESN'T though...

--begin of try2.py
def main():
 return "Hello"
--end of try2.py

Can someone explain why???



More information about the Python-list mailing list