Question on importing and function defs

TC cappallo at gmail.com
Sun Mar 2 17:14:46 CET 2008


I have a problem.  Here's a simplified version of what I'm doing:

I have functions a() and b() in a module called 'mod'.  b() calls a().

So now, I have this program:

from mod import *

def a():
    blahblah

b()


The problem being, b() is calling the a() that's in mod, not the new
a() that I want to replace it.  (Both a()'s have identical function
headers, in case that matters.)  How can I fix this?

Thanks for any help.



More information about the Python-list mailing list