title: Interaction between modules in python package
body: <p>For example, I have package X, which contains modules <em>module1</em> and <em>module2</em>. In <em>module1</em> I have a class MyClass, which I want to use in <em>module2</em>. Can I just do this in <em>module2</em>:
  </p>
  
  <pre><code>import module1
  
  a = module1.MyClass()
  </code></pre>
  
  <p>
  ?</p>
  
  <p>I mean usage of relative path to module. In python documentation(in " Intra-package References" section) says, that in python2.7 we can use "import module1", but for python 3 they say, that we can use "from module1 import MyClass". But there are no information, is this first form prohibited. And this is my question.</p>