Quantcast
Channel: Python import mechanics - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Daniel Roseman for Python import mechanics

Alan's given a great answer, but I wanted to add that for your question 1 it depends on what you mean by 'imports'.If you use the from C import x syntax, then x becomes available in the namespace of B....

View Article



Answer by Alan Franzoni for Python import mechanics

The first thing you should know is that the Python language is NOT an ISO standard. This is rather different from C/C++, and it means that there's no "proper" way to define a language behaviour -...

View Article

Python import mechanics

I have two related Python 'import' questions. They are easily testable, but I want answers that are language-defined and not implementation-specific, and I'm also interested in style/convention, so I'm...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images