C
comanighttrain
Hey guys, i just started learning python (i usually use java/C).
this has got me stumped as its not mentioned in the documentation
(unless im skimming it every time).
How does one instanciate a class from another file
i thought it would be
-----------------------------------code---------------------------
import file.py
thisFile = ClassName()
-------------------------------not code---------------------------
but its not
and its not
-----------------------------------code---------------------------
thisFile= filename.ClassName()
-------------------------------not code---------------------------
im stuck
cheers
dave
this has got me stumped as its not mentioned in the documentation
(unless im skimming it every time).
How does one instanciate a class from another file
i thought it would be
-----------------------------------code---------------------------
import file.py
thisFile = ClassName()
-------------------------------not code---------------------------
but its not
and its not
-----------------------------------code---------------------------
thisFile= filename.ClassName()
-------------------------------not code---------------------------
im stuck
cheers
dave