PythonWin IDE doesn't save all project files??

From: Glenn Reed (dont_use_at_nowhere.com)
Date: 11/30/03


Date: Sun, 30 Nov 2003 14:01:06 +1300

Hi,

Someone might be able to help me with this. If I am using PythonWin (as
part of the ActiveState Python distribution) (lastest release 2.2) and have
two files in the editor window.

---- module1.py --------
class module1:
    def __init__(self):
        self.x=23
        self.y=14
        self.z=33
        self.x1=self.x

---- tmod.py ----
# Test Module
import module1

thisClass = module1.module1()
print thisClass.x

------------------------

and then I run this script tmod.py I get the correct answer 23

However if I then go back and change the value of the variable in module1.py
and change 'self.x=23' to 'self.x=45' and run the tmod.py script again I
still get the answer 23. I click the "save all files" icon which is a
picture of 3 floppy disks and run the tmod.py again and I still get 23. If
I exit PythonWin and start it again and load the same scripts I get the
correct answer 45. I have tried closing and reopening the module1.py source
file but nothing helps until I restart PythonWin.
Does anyone know what is happening here?

Thanks in advance.

Glenn.



Relevant Pages

  • Re: pythonwin closes unexpectedlyI
    ... I run a script in PythonWin and obviously some sort of an error occurs ... No warning, no error message just ... Get pythonwin out of the equation; run your script from the command ...
    (comp.lang.python)
  • pythonwin closes unexpectedlyI
    ... I run a script in PythonWin and obviously some sort of an error occurs ... No warning, no error message just ...
    (comp.lang.python)
  • Re: My first try using logger didnt work. Why?
    ... Well, now that logging is working, how do I stop it from working? ... I'm developing in PythonWin. ... The way to avoid this is to only call addHandleronce in your script. ... handlers logging to the same event sink. ...
    (comp.lang.python)
  • Re: working directory for debugging in pythonwin
    ... Colin J. Williams schrieb: ... > Thomas Pfaff wrote: ... >> I started using the nice Pythonwin IDE together with Python 2.3 (I have ... >> My problem is, that when I want to run a script in the debugger, I can ...
    (comp.lang.python)
  • Re: Pythonwin crashes
    ... Whenever I use Pythonwin to run a PyGame or PyOgre script, Pythonwin crashes when the script exits. ... the console once the graphics mode has been changed, ...
    (comp.lang.python)