One class per file?

Bruno Desthuilliers bdesth.quelquechose at
Mon Sep 29 18:18:15 CEST 2008

HCB a écrit :
> Hello:
> The book "Code Complete" recommends that you put only one class in a
> source file,

That's possibly (don't know...) a good advice for C++, and that's 
mandatory (at least for 'public' classes) in Java. And that's totally 
pointless and counterproductive in Python. Also and FWIW, "this dead 
horse as been beaten to hell and back" (IOW : you'll find quite a couple 
thread discussing this in this newsgroup's archives).

More information about the Python-list mailing list