Automatic import ?

Ovidiu Deac ovidiudeac at gmail.com
Fri Mar 26 07:14:01 EDT 2010


> But, as there is no case where AAA can be used without BBB, I would
> like to avoid importing BBB in my Python scripts when I already import
> AAA.

Then why do you need to explicitely pass BBB() to AAA constructor? You
could leave AAA constructor with no parameters or with a parameter
with a default BBB() value



More information about the Python-list mailing list