Re: [Tutor] best practices for where to set instance member variables

2010-09-04 Thread Alan Gauld
"Gregory, Matthew" wrote Is there a guideline on where instance member variables should be set within a class? That is, is it a bad idea to set self variables within private member functions rather than returning them to the enclosing caller? There is nothing really specific to OOPP its j

Re: [Tutor] best practices for where to set instance member variables

2010-09-03 Thread Steven D'Aprano
On Sat, 4 Sep 2010 05:17:34 am Gregory, Matthew wrote: > Hi all, > > Is there a guideline on where instance member variables should be set > within a class? The normal terminology used in Python is "attributes" instead of "member variables", and "methods" rather than "member functions". [...]

[Tutor] best practices for where to set instance member variables

2010-09-03 Thread Gregory, Matthew
Hi all, Is there a guideline on where instance member variables should be set within a class? That is, is it a bad idea to set self variables within private member functions rather than returning them to the enclosing caller? Or should I avoid calls to internal functions from other member fun