Re: Python - Getting Imports Working
- From: james.homme@xxxxxxxxxxxx
- To: programmingblind@xxxxxxxxxxxxx
- Date: Thu, 27 Dec 2007 11:29:54 -0500
Hi Richard,
It could be instantiating classes because instantiating them makes objects
of them. OK. I'm out of here and back to coding before I get chicken again.
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 11:26
AM
Please respond to
programmingblind@
freelists.org
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
> instantiate
> objects? 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 Working
>
>
>>
>> Hi,
>> 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
saw
>
>> a
>> 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'd
> rather
>> not do it. Is there a way to get this working that doesn't involve
> editing
>> the 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
>> http://www.freelists.org/list/programmingblind
>>
>>
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/programmingblind
>
>
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/programmingblind
>
>
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
- References:
- Re: Python - Getting Imports Working
- From: rrdinger
Other related posts:
- » Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- » RE: Python - Getting Imports Working
- » RE: Python - Getting Imports Working
- » RE: Python - Getting Imports Working
- » Re: Python - Getting Imports Working
- Re: Python - Getting Imports Working
- From: rrdinger