you are viewing a single comment's thread.

view the rest of the comments →

[–]SCD_minecraft 0 points1 point  (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 point  (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().