python not detecting changes if importing from root
Question: For some reason, my changes aren't reflected if I import a class relative to
the root. Here's an example:

    
    
      root/__init__.py
           subdir/__init__.py
                  bar.py
    

If I cd to subdir and do:

    
    
    >>> from bar import baz
    >>> dir(baz) 
    

This reflects my changes and shows the method I added to baz

However, if I do:

    
    
    >>> from subdir.bar import baz
    >>> dir(baz) 
    

This does NOT reflect my changes

I've deleted all .pyc files in this project. This is driving me nuts!!


Answer: What Andreas said in the comments fixed it:

"Have you checked your PYTHONPATH? Maybe there is somewhere an old version
hanging around..."

