python import acting weird?
<p>Straight from the <a href="http://docs.python.org/2/tutorial/modules.html" rel="nofollow">example in the Python docs</a>:</p>

<p>fibo.py</p>

<pre><code># Fibonacci numbers module

def fib(n):    # write Fibonacci series up to n
    a, b = 0, 1
    while b &lt; n:
        print b,
        a, b = b, a+b

def fib2(n): # return Fibonacci series up to n
    result = []
    a, b = 0, 1
    while b &lt; n:
        result.append(b)
        a, b = b, a+b
    return result

def sayHi(a):
    print a
</code></pre>

<p>dhtest.py</p>

<pre><code>import fibo

fibo.fib(50)
print fibo.fib2(100)
fibo.sayHi("DURRRRRRRP!!!!")
</code></pre>

<p>Both files are in the same directory. When i run the script, I get:</p>

<pre><code>&gt;&gt;&gt; 
1 1 2 3 5 8 13 21 34 [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
Traceback (most recent call last):
  File "C:/PythonTest/dhtest.py", line 4, in &lt;module&gt;
    fibo.sayHi("DURRRRRRRP!!!!")
AttributeError: 'module' object has no attribute 'sayHi'
</code></pre>

<p>I really don't understand why the first two work and <code>sayHi()</code> doesn't....</p>
