It's not strongly related to some specific problem, but more to the better python perception and self-training.
Thank you all for your time and attention. Thank you, Jerremy D, for the interesting solutions. Regards, Aidas Bendoraitis [aka Archatas] On 3/31/07, Forest Bond <[EMAIL PROTECTED]> wrote: > On Fri, Mar 30, 2007 at 08:07:51PM +0200, Aidas Bendoraitis wrote: > > > > Actually the was no circular import since I haven't imported a from b, > > but just b from a. > > Sorry, mis-read your code, I thought there were only two modules. > > > And unfortunately your answer didn't solve the original question, > > which is getting the value from the module that imports the current > > module. > > Pardon. I mis-understood that, too. > > So, your goal is to make Python imports act more like PHPincludes? Wny on > earth > would you want to do that? There is no global namespace in Python, and for > good > reason. What are you really trying to achieve? > > -Forest > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (GNU/Linux) > > iD8DBQFGDZE/RO4fQQdv5AwRAh4xAJ4mgzleRFvarzodA3jkkZnoj9330QCgsjmq > fZCZMl5LQDOvCub8KiDqdzY= > =cNIV > -----END PGP SIGNATURE----- > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---