4 ms·
Everything is an object in Python, but not in an intrusive way. * You can write a script that's "just" a script, it doesn't have to be an object with a main me
by lmm 11y ago
Everything is an object in Python, but not in an intrusive way.
* You can write a script that's "just" a script, it doesn't have to be an object with a main method or anything like that
* You can have free-floating functions and values at top level
* Modules are first-class and not really objects in the classical OO sense
* Python culture favours using tuples or maps as records, and free-floating functions, over using objects for everything