Delete a function
gtb
goodTweetieBird at hotmail.com
Wed Mar 21 13:04:47 EDT 2007
On Mar 21, 11:37 am, Steve Holden <s... at holdenweb.com> wrote:
> gtb wrote:
> > After a function has been imported to a shell how may it be deleted so
> > that after editing it can reloaded anew?
>
> Use the built-in reload() function to reload the module that defines the
> function.
>
> regards
> Steve
> --
> Steve Holden +44 150 684 7255 +1 800 494 3119
> Holden Web LLC/Ltd http://www.holdenweb.com
> Skype: holdenweb http://del.icio.us/steve.holden
> Recent Ramblings http://holdenweb.blogspot.com
Thanks, tried that now and get nameError: with the following.
import sys
sys.path.append("c:\maxq\testScripts")
from CompactTest import CompactTest
from compactLogin import dvlogin
reload(compactLogin)
More information about the Python-list
mailing list