namespace confusion
Mark Robinson
m.1.robinson at herts.ac.uk
Wed Aug 8 08:51:46 EDT 2001
Trivial question I think.
I have a program that is organised in three files as follows:
#main.py
#########
from first import *
from second import *
functfirst() #from first
functSecond() #from second
########################
#first.py
##########
functfirst()
************
#second.py
##########
from first import *
def functCecond():
functfirst() #
-----------------------------------------------
The problem I am having is I can't access the functfirst() from
second.py. It makes no differce if I import it or not. What am I doing
wrong or not doing that I should?
blobby
More information about the Python-list
mailing list