Dear All,

I created a class that invoke  from another file another class
 I get an error that I do not understand: gobal name Job is not defined
However If I see the class imported I found the class Job.
Any suggestion or example on class invoke another class

#job,py
class Jobs:
    .....

#trial.py

from core.job import *
class Second:
    def __initi__:
        tp = open("/tmp/file.txt")

    def gus(self):
        tr = Job()

thanks so much!1

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to