Import problem

Nick Coghlan ncoghlan at email.com
Mon Nov 22 09:14:04 EST 2004


Achim Domma (Procoders) wrote:
> Achim Domma (Procoders) wrote:
> 
>> Seems like I'm mixing up something in a very bad way, but I have no 
>> idea what I'm doing wrong!?
> 
> 
> I have moved the calculation of VERSION to a module _Version.py which 
> contains a function Version(), which is imported by __init__.py and 
> _C.py. That works and is much cleaner, but I would still be happy if 
> somebody could explain we, what's going wrong.

Not an explanation, but even developers on the Python core can't always follow 
the twists and turns the import logic can go through when importing a package:

http://sourceforge.net/tracker/index.php?func=detail&aid=992389&group_id=5470&atid=105470

Cheers,
Nick.



More information about the Python-list mailing list