miniblog.

← Back to all posts
1
@PeterLudemann Sure, but under UFCS, x.foo() and foo(x) are equivalent, so importing a standalone function foo makes x.foo() available.

1 Comment

@wilfredh Disambiguation the Python way: Class.method? It turns out that for large programs, fully qualified names help a lot with readability, even with IDEs that can do lookup. (Or partially qualified names) "from mymodule import *" is forbidden in the Google style guide, instead do "import my module" and then "mymodule.foo()"