Content deleted Content added
→Origin of terms: new section |
MalnadachBot (talk | contribs) m Replaced obsolete font tags and reduced Lint errors. (Task 12) |
||
Line 156:
There's nothing dubious at all about this. A module is a collection of shared state (stored in module-level globals) combined with a set of functions that operate on that state. An object (in the sense of class instance) is a collection of shared state (stored in 'self') combined with a set of functions that operate on that state (i.e. methods). The only really substantial difference between the two is that -- generally -- modules can only be instantiated once, while there can be multiple instantiations of the same class. If no one disputes this, I'm deleting this tag. [[Special:Contributions/72.228.33.213|72.228.33.213]] ([[User talk:72.228.33.213|talk]]) 18:23, 15 September 2011 (UTC)
:The multiplicity difference is not a minor point; modules are thus much more akin to classes. I've edited the article to make better comparisons. --[[User:Cybercobra|<b
== Totally screwed up ==
|