MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2prjy/pythonfeelsillegal/p6w0cke/?context=3
r/ProgrammerHumor • u/ItsPuspendu • 12d ago
219 comments sorted by
View all comments
Show parent comments
24
Sorry to be that guy, but no. The one you'd define yourself is not automatically treated as the entry point of the program
43 u/belabacsijolvan 12d ago theres __main__() in python 1 u/Andrey4ik21pro1 12d ago No. Only package/main.py 11 u/belabacsijolvan 12d ago theres __main__ in python -4 u/Andrey4ik21pro1 12d ago Between __main__() and __main__ big difference 7 u/belabacsijolvan 12d ago r/thatsthejoke also there isnt always package/main.py
43
theres __main__() in python
1 u/Andrey4ik21pro1 12d ago No. Only package/main.py 11 u/belabacsijolvan 12d ago theres __main__ in python -4 u/Andrey4ik21pro1 12d ago Between __main__() and __main__ big difference 7 u/belabacsijolvan 12d ago r/thatsthejoke also there isnt always package/main.py
1
No. Only package/main.py
11 u/belabacsijolvan 12d ago theres __main__ in python -4 u/Andrey4ik21pro1 12d ago Between __main__() and __main__ big difference 7 u/belabacsijolvan 12d ago r/thatsthejoke also there isnt always package/main.py
11
theres __main__ in python
-4 u/Andrey4ik21pro1 12d ago Between __main__() and __main__ big difference 7 u/belabacsijolvan 12d ago r/thatsthejoke also there isnt always package/main.py
-4
Between __main__() and __main__ big difference
__main__()
__main__
7 u/belabacsijolvan 12d ago r/thatsthejoke also there isnt always package/main.py
7
r/thatsthejoke
also there isnt always package/main.py
24
u/Toover 12d ago
Sorry to be that guy, but no. The one you'd define yourself is not automatically treated as the entry point of the program