Message81733
This is the pdb session at the tracepoint in line 4 in the function func
()
So I did the following first:
> c:\test.py(5)func()
-> a = b + 2
(Pdb) p b
13
(Pdb) !b=5
(Pdb) p b
13
(Pdb) n
> c:\test.py(6)func()
-> print a
(Pdb) n
15
I tried to change the value of b but it didn't work, as the
print a statement printed 15, but it should have printed 7
because I set b to 5!!
Then I did the same again:
> c:\test.py(5)func()
-> a = b + 2
(Pdb) p b
13
(Pdb) !b = 5
(Pdb) n
> c:\test.py(6)func()
-> print a
(Pdb) n
7
Note that I changed the value of b to 5 and than didn't print the value
of b and it seems to work as the print statement printed 7. |
|
Date |
User |
Action |
Args |
2009-02-12 08:33:30 | mproeller | set | recipients:
+ mproeller, benjamin.peterson |
2009-02-12 08:33:30 | mproeller | set | messageid: <1234427610.43.0.119243560215.issue5215@psf.upfronthosting.co.za> |
2009-02-12 08:33:29 | mproeller | link | issue5215 messages |
2009-02-12 08:33:28 | mproeller | create | |
|