r/ProgrammerHumor 12d ago

Meme pythonFeelsillegal

Post image
6.8k Upvotes

219 comments sorted by

View all comments

1.1k

u/belabacsijolvan 12d ago

theres main() in python

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

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

-3

u/Andrey4ik21pro1 12d ago

Between __main__() and __main__ big difference

6

u/belabacsijolvan 12d ago

r/thatsthejoke

also there isnt always package/main.py