Comparing PythonWin and IDLE?

Charlie Derr charlie at intelligenesis.net
Fri Apr 14 18:10:16 CEST 2000


 	instead of:

import myModule

	try this:

reload(myModule)

	and you should be able to get your recently modified changes to take effect
without restarting python

	~c


Michael Scharf wrote:
|
|David Smith wrote:
|>
|> Warren Postma wrote:
|>
|> >  I find once a module has
|> > been imported once, it often will not import again, even if I
|have changed
|> > the source (.py) file, the .pyc file does not appear to be
|regenerated, and
|> > any errors in the .py file can only be fixed by editing and
|saving the .py
|> > file, quitting the IDE and restarting. This appears to happen
|for both IDLE
|> > and Python. Anybody else seen this?
|>
|> When you edit a file under Idle, Save it and then hit Control-F5.  Then
|> you can re-import the file.
|
|But a re-import should also change existing instances of
|functions, classes and methods defined in the module. OK,
|there are some cases, where a new version is incompatible
|with the old data members, but sometimes it would be
|helpful....
|
|
|Michael
|--
|     ''''\     Michael Scharf
|    ` c-@@     TakeFive Software GmbH, a Wind River Company
|    `    >     http://www.WindRiver.com
|     \_ V      mailto:Michael.Scharf at gmx.de
|--
|http://www.python.org/mailman/listinfo/python-list
|





More information about the Python-list mailing list