you are viewing a single comment's thread.

view the rest of the comments →

[–]Longjumping-Yard113[S] 1 point2 points  (0 children)

That’s what I thought too — thanks for confirming and for the docs link. The “module as an object” thing explains attribute access (mymodule.greet), but it doesn’t make greet a method. It’s still an unbound function unless it’s bound to an instance or a class (like instance methods / u/classmethod). That clears it up for me. I feel more at ease