@trond
You've misunderstood me. In PHP you just use classes. In python you don't know if you should/could classes or function inside module. What I mean, that after php it looks like cumbersome, because it is mix of functions and classes in module. In well written php you never see such organization of files. There is strict separation between functions and classes. Usually, you have some script.php which instantiate classes, but you never see functions definitions inside of some Foo.class.php
module.py
def some_function():
foo = SomeClass
foo.doSomething()
class SomeClass:
def doSomething(self):
pass
↧