Re: Best practice for generalizing and documenting each method's behaviour

2013-08-31 Thread Steven D'Aprano
On Fri, 30 Aug 2013 11:04:28 -0700, niubao56 wrote: > I'm starting a small project coding in Python as I learn the ropes. As > the project grows bigger, there are more and more overlapping and even > redundant methods. For example, several classes have a > checkAndClean_obj_state() method. If just

Re: Best practice for generalizing and documenting each method's behaviour

2013-08-31 Thread Fábio Santos
On 30 Aug 2013 19:07, wrote: > > I'm starting a small project coding in Python as I learn the ropes. As the project grows bigger, there are more and more overlapping and even redundant methods. For example, several classes have a checkAndClean_obj_state() method. If just one or two such classes, i

Best practice for generalizing and documenting each method's behaviour

2013-08-30 Thread niubao56
I'm starting a small project coding in Python as I learn the ropes. As the project grows bigger, there are more and more overlapping and even redundant methods. For example, several classes have a checkAndClean_obj_state() method. If just one or two such classes, it is easy to analyze the behavi