Re: [Tutor] re-import

2006-10-30 Thread Kent Johnson
Glenn T Norton wrote: > jhl wrote: > >> Hi- >> >> How is the 1st import of a module removed so that new edits on the >> module can be re-imported? >> > Read about reload here: > http://docs.python.org/lib/built-in-funcs.html Make sure you understand the limitations of reload(). In particular, n

Re: [Tutor] re-import

2006-10-29 Thread jhl
Thanks again!That is just what I need.-JOn 10/29/06, Glenn T Norton <[EMAIL PROTECTED] > wrote:jhl wrote:> Hi->> How is the 1st import of a module removed so that new edits on the > module can be re-imported?>> DETAIL:>> I am working on a module/file and importing it into a python shell,> trying it

Re: [Tutor] re-import

2006-10-29 Thread johnf
On Sunday 29 October 2006 18:25, jhl wrote: > Hi- > > How is the 1st import of a module removed so that new edits on the module > can be re-imported? > > DETAIL: > > I am working on a module/file and importing it into a python shell, trying > it out and then tweaking/editing the module. Then to se

Re: [Tutor] re-import

2006-10-29 Thread Glenn T Norton
jhl wrote: > Hi- > > How is the 1st import of a module removed so that new edits on the > module can be re-imported? > > DETAIL: > > I am working on a module/file and importing it into a python shell, > trying it out and then tweaking/editing the module. Then to see the > effects of the edits,

[Tutor] re-import

2006-10-29 Thread jhl
Hi-How is the 1st import of a module removed so that new edits on the module can be re-imported?DETAIL:I am working on a module/file and importing it into a python shell, trying it out and then tweaking/editing the module.  Then to see the effects of the edits, I want to re-import the file and find

[Tutor] Re: import.... (Joseph Q.)

2005-04-10 Thread Andrei
Joseph Quigley gmail.com> writes: > Well, I'm importing a custom module, and I can't loop back to the module I > imported (the modules are different modes of the program. Someone suggested > classes, but I have no idea how to use them. So you have two modules which implement the same function

Re: [Tutor] Re: import.... (Joseph Q.)

2005-04-10 Thread Kent Johnson
Joseph Quigley wrote: > Well, I'm importing a custom module, and I can't loop back to the module I imported (the modules are different modes of the program. Someone suggested classes, but I have no idea how to use them. I'm not sure I understand you, but it sounds like you have two versions of a

[Tutor] Re: import.... (Joseph Q.)

2005-04-10 Thread Joseph Quigley
Joseph Quigley wrote on Fri, 08 Apr 2005 16:58:37 -0600: > import is handy. But my questions are: > is there a type of unimport or something to unload a module? Things which are not used are cleaned up automatically at some point. What would you like to do do that this mechanism doesn't provide? -

[Tutor] Re: import.... (Joseph Q.)

2005-04-09 Thread Andrei
Joseph Quigley wrote on Fri, 08 Apr 2005 16:58:37 -0600: > import is handy. But my questions are: > is there a type of unimport or something to unload a module? Things which are not used are cleaned up automatically at some point. What would you like to do do that this mechanism doesn't provide?

Re: [Tutor] Re: Import Site Failed Resolution

2005-01-25 Thread Kent Johnson
EMAIL PROTECTED] Date: Tue, 25 Jan 2005 14:42:09 -0500 To: Subject: Re: [Tutor] Re: Import Site Failed Resolution OK, getting closer. import site is failing because site imports os and that import is failing. The error message points to a line that should be part of the docstring at the beginni

Re: [Tutor] Re: Import Site Failed Resolution

2005-01-25 Thread Kent Johnson
OK, getting closer. import site is failing because site imports os and that import is failing. The error message points to a line that should be part of the docstring at the beginning of os.py...strange. Here are the first 22 lines from my os.py - the entire docstring. If your Python2.4\Lib\os.py

[Tutor] Re: Import Site Failed Resolution

2005-01-25 Thread jhomme
Hi, Here is all the information I could get from the display of the output from this error. How do I figure out what is going on and fix the problem? This is on a Windows 2000 machine. graphic 910 C:\WINNT\system32\command.com C:\PYTHON>python -v # installing zipimport hook import zipimport # b