What are modules really for?
bruno modulix
onurb at xiludom.gro
Wed Aug 10 11:54:51 EDT 2005
Neil Benn wrote:
(snip)
> If you don't have a class how can you combine functionality with data
> and hold state
In Python, functions can hold state in various ways: closures,
generators, and - Python functions being instances of the function class
- attributes.
> - that is one of the points of a class.
Yeps, but not the only way to solve the problem (even if it's actually
my favorite one !-)
(snip)
> Enterprise systems have different objectives than a cgi script or single
> client install stuff.
Would you call Zope a cgi script or a single client install stuff ?
--
bruno desthuilliers
ruby -e "print 'onurb at xiludom.gro'.split('@').collect{|p|
p.split('.').collect{|w| w.reverse}.join('.')}.join('@')"
More information about the Python-list
mailing list