One class per file?
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Wed Oct 1 05:50:11 EDT 2008
Lawrence D'Oliveiro a écrit :
> In message
> <a932e44b-3566-4c0f-8b63-2dce0a82946b at 34g2000hsh.googlegroups.com>, HCB
> wrote:
>
>> The book "Code Complete" recommends that you put only one class in a
>> source file ...
>
> That would only apply to languages like C with no namespace control.
classes in C ?-)
OTHO, 'one class per file' is a standard idiom in Java and IIRC in C++
(which both have namespaces one way or another)
More information about the Python-list
mailing list