A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/347285.html below:

instanciating classes from other files

Newbie - instanciating classes from other files Newbie - instanciating classes from other filescomanighttrain at gmail.com comanighttrain at gmail.com
Wed Sep 14 22:47:30 EDT 2005
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


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4