r/ProgrammerHumor 2d ago

Meme pythonFeelsillegal

Post image
6.7k Upvotes

219 comments sorted by

View all comments

1.1k

u/belabacsijolvan 2d ago

theres main() in python

24

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

12

u/belabacsijolvan 2d ago

theres __main__ in python

-4

u/Andrey4ik21pro1 2d ago

Between __main__() and __main__ big difference

5

u/belabacsijolvan 2d ago

r/thatsthejoke

also there isnt always package/main.py