Organisation of python classes and their methods
steve+comp.lang.python at pearwood.info
Fri Nov 2 11:20:36 CET 2012
On Fri, 02 Nov 2012 08:40:06 +0000, Mark Lawrence wrote:
> On 02/11/2012 08:08, Martin Hewitson wrote:
>> Even if one takes reasonable numbers: 20 methods, each method has 20
>> lines of documentation, then we immediately have 400 lines in the file
>> before writing a line of code. It would seem much more natural to me to
>> have these methods in their own file, grouped nicely in
>> sub-directories. But it seems this is not the python way. Sigh.
>> Thanks for your thoughts,
> 20 lines of documentation per method? As far as I'm concerned that's
> not a smell, that's a stink.
Depends on the method. For some, 20 lines is 18 lines too many. For
others, that's 80 lines too few.
More information about the Python-list