r/ProgrammerHumor 2d ago

Meme pythonFeelsillegal

Post image
6.7k Upvotes

219 comments sorted by

View all comments

Show parent comments

25

u/Toover 2d 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

44

u/belabacsijolvan 2d ago

theres __main__() in python

1

u/Andrey4ik21pro1 2d ago

No. Only package/main.py

11

u/belabacsijolvan 2d ago

theres __main__ in python

-4

u/Andrey4ik21pro1 2d ago

Between __main__() and __main__ big difference

7

u/belabacsijolvan 2d ago

r/thatsthejoke

also there isnt always package/main.py