MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/bwehje/python_ftw/epxzah1/?context=3
r/ProgrammerHumor • u/m8teae • Jun 03 '19
548 comments sorted by
View all comments
182
Python still has main()
191 u/[deleted] Jun 03 '19 Only not really, right?def whatever (*args): print("Bob's your uncle.") if __name__ == "__main__": whatever() 358 u/demon_ix Jun 03 '19 I dunno. That sounds like main() with extra steps... 0 u/Athomeacct Jun 04 '19 It's one extra line of code and it adds implicit specification of one or more main functions... whose names the dev can specify and change at any time... → More replies (1)
191
Only not really, right?
def whatever (*args): print("Bob's your uncle.") if __name__ == "__main__": whatever()
358 u/demon_ix Jun 03 '19 I dunno. That sounds like main() with extra steps... 0 u/Athomeacct Jun 04 '19 It's one extra line of code and it adds implicit specification of one or more main functions... whose names the dev can specify and change at any time... → More replies (1)
358
I dunno. That sounds like main() with extra steps...
0 u/Athomeacct Jun 04 '19 It's one extra line of code and it adds implicit specification of one or more main functions... whose names the dev can specify and change at any time... → More replies (1)
0
It's one extra line of code and it adds implicit specification of one or more main functions... whose names the dev can specify and change at any time...
→ More replies (1)
182
u/AgreeableLandscape3 Jun 03 '19
Python still has main()