Python Forum
Claims not declared, but is... why?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Claims not declared, but is... why?
#4
in second module:
class setupADB:
    def __init__(self, con):
        self.con = con
then refer to con in rest of class as self.con

also, line 37 of first script
    d = setupADB(con)
Reply


Messages In This Thread
Claims not declared, but is... why? - by Ecniv - Apr-09-2019, 10:38 PM
RE: Claims not declared, but is... why? - by Ecniv - Apr-10-2019, 07:12 AM
RE: Claims not declared, but is... why? - by Larz60+ - Apr-10-2019, 09:51 PM
RE: Claims not declared, but is... why? - by Ecniv - Apr-11-2019, 09:02 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020