Am 03.10.2012 16:39, schrieb Aaron Meurer: > And anyway, if importing a function from a module causes
circular import problems, so will just importing the module.
I can only agree after reading and re-reading the piece on the import statement in the Python docs.
On the other hand, the folks on Stack Overflow are usually knowledgeable, and they do maintain there's a difference.
I suspect there's a difference in what module initialization code can expect. So different styles of initialization code could very well affected by having import foo from bar vs. import bar, not because the import itself works differently but because the latter style forces module code to use imported functions in a circular-import-safe manner.
Exploring these subtleties is going to be an, erm, "interesting" endeavour :-)
-- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
