Unification of Methods and Functions

Greg Ewing greg at cosc.canterbury.ac.nz
Tue May 25 21:59:33 EDT 2004


Neil Benn wrote:
>    I am a ex-Java/.NET programmer so I admit I'm biased but the problem 
> is not language specific, it's design specific.  I do understand that in 
> Python this is only syntatic sugar but using a module namespace to 
> acheive these needs removes what is a link in the design.

I don't see it that way. To me, using a module namespace is
an alternative way of expressing the same link. A naming
convention for functions (make_dodo, first_dodo,
extinctify_dodos) would be a third way of expressing the
link.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list