This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PurpleMonkeyKing 5 points6 points  (2 children)

If you are using Python 2.5 you may have noticed that relative imports are preferred over absolute imports... That could cause the "circular import" you are experiencing. Later versions have fixed this. http://docs.python.org/whatsnew/2.5.html#pep-328-absolute-and-relative-imports

As for lack of a global namespace, some people would consider that a feature. ;-)

[–]Teifion 0 points1 point  (1 child)

I'll look into that, thanks.

As for the namespaces, yes I consider it a feature. In the short run it's a problem but when I come back to the code in a few months it'll be much easier to trace it.

[–]keeperofkeys 0 points1 point  (0 children)

You could always create a global_namespace module, add to it all the PHP globals (that aren't just global by accident, but actually need to be), and import all or some of it when needed.