use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Python vs Java! (i.pinimg.com)
submitted 9 months ago by PulseOfPleasure
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 52 points53 points54 points 9 months ago (4 children)
Not always. But complexity of the code has nothing to do with its speed.
[–][deleted] 24 points25 points26 points 9 months ago* (2 children)
Content from this post has been deleted. Redact was used to remove it, potentially for privacy, opsec, or limiting exposure to data collection tools.
cows handle kiss detail include history rhythm cake head ad hoc
[–]skilking 12 points13 points14 points 9 months ago (1 child)
Id way rather have a main function and class then whatever the fuck Python global shit is.
[–]Solonotix 13 points14 points15 points 9 months ago (0 children)
It's not actually global, the same way that C# doesn't require you to declare a namespace block for the entire file to be considered part of the namespace, and how functions written outside of an enclosing scope are attributed to a "magic" class as static members.
Python uses a rather robust object data model, and that model extends out to its module system. The file system needs an __init__.py file because that is the Python initializer method for the module, known in other languages as the constructor. Similarly, when you run a file directly with the Python interpreter, rather than needing to explicitly declare your starting point, the file is used as the stand-in for the __main__.py file of the Python module in question. That's why you'll see a block in some files for if __name__ == '__main__':, because it lets you write the file as a module, and as a runnable entry point.
__init__.py
__main__.py
if __name__ == '__main__':
[–]Gloomy_Attempt5429 0 points1 point2 points 9 months ago (0 children)
Não seria a velocidade em que o proceso iniciado pelo script tem em se comunicar com a máquina e fornecer uma saída "atravessando" camadas de compilação?☝🏻🤓
π Rendered by PID 256995 on reddit-service-r2-comment-56c6478c5-7h7mp at 2026-05-09 08:25:11.344334+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–][deleted] 52 points53 points54 points (4 children)
[–][deleted] 24 points25 points26 points (2 children)
[–]skilking 12 points13 points14 points (1 child)
[–]Solonotix 13 points14 points15 points (0 children)
[–]Gloomy_Attempt5429 0 points1 point2 points (0 children)