Hi Jim, OK, I wondered if it was that or a path problem.I will probably get in trouble with some OO lawyer, but I instantiate objects, which are instances of classes. But no matter which is correct, I know what you meant.
Regards, Richard----- Original Message ----- From: <james.homme@xxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, December 27, 2007 8:11 AM Subject: Re: Python - Getting Imports Working
Hi Richard, Thanks for asking which error I got. As it turned out, I needed to qualify that the class I wanted to work with came from my module. I needed to say import elevator # Instantiate the Elevator class. e = elevator.Elevator()That brings up a question. Do you instantiate classes or do you instantiateobjects? I think that the terminology in the above comment line may be wrong. Thanks. Jim James D Homme, , Usability Engineering, Highmark Inc., james.homme@xxxxxxxxxxxx, 412-544-1810 "Never doubt that a thoughtful group of committed citizens can change the world. Indeed, it is the only thing that ever has." -- Margaret Mead "rrdinger" <rrdinger@olypen. com> To Sent by: programmingblind@xxxxxxxxxxxxx programmingblind- cc bounce@freelists. org Subject Re: Python - Getting Imports Working 12/27/2007 10:48 AM Please respond to programmingblind@ freelists.org Hi Jim, What error are you getting? Richard ----- Original Message ----- From: <james.homme@xxxxxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Thursday, December 27, 2007 5:32 AM Subject: Python - Getting Imports WorkingHi, When I try to import code I wrote, I get errors. I took the code and put it in the same file as the code that's calling it, so I know it works. I sawa tutorial that advises me to edit the registry to make this work. The tutorial seems to be talking about the version of Python from python.org.I have ActiveState Python. I am OK with editing the registry, but I'drathernot do it. Is there a way to get this working that doesn't involveeditingthe registry? What is it? Thanks. Jim James D Homme, , Usability Engineering, Highmark Inc., james.homme@xxxxxxxxxxxx, 412-544-1810 "Never doubt that a thoughtful group of committed citizens can change the world. Indeed, it is the only thing that ever has." -- Margaret Mead __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind