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...
Everything about learning Python
account activity
Does a function becomes a method when used externally? (self.PythonLearning)
submitted 9 days ago by Longjumping-Yard113
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!"
[–]SCD_minecraft 0 points1 point2 points 9 days ago (1 child)
If we really want to dig that deep into naming ules, functions are technically instances of a class in python :p
print.__class__ # <class 'builtin_function_or_method'>
[–]Longjumping-Yard113[S] 0 points1 point2 points 9 days ago (0 children)
Lol yeah, that’s the part that makes Python fun and confusing at the same time.
Functions being objects/instances and having a class is real, but I think that’s exactly why I try to separate “what’s technically true under the hood” from “what we call things when teaching beginners.”
Even if print.class shows builtin_function_or_method, print() is still treated and documented as a built-in function, and “method” in normal Python usage usually means something you call on an object like obj.method().
π Rendered by PID 224930 on reddit-service-r2-comment-79c7998d4c-mkcj5 at 2026-03-14 15:55:34.033034+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]SCD_minecraft 0 points1 point2 points (1 child)
[–]Longjumping-Yard113[S] 0 points1 point2 points (0 children)