[Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()
Guido van Rossum
guido at python.org
Tue Apr 12 19:22:40 CEST 2011
On Tue, Apr 12, 2011 at 10:01 AM, Djoume Salvetti <dsalvetti at trapeze.com> wrote:
> Thank you and sorry about the pastebin.
> I can reproduce it on python 2.5.2 and python 2.6.6 but not on python 3.1.2
> (all in ubuntu). I'll open a bug.
Looking at the pastebin you are using !lv = 2. Why the !? Without it,
it works fine:
Python 2.5.5+ (release25-maint:86106, Dec 9 2010, 10:25:54)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def f(x):
... import pdb; pdb.set_trace()
... return x
...
>>> f(1)
> <stdin>(3)f()
(Pdb) x
1
(Pdb) x = 2
(Pdb) c
2
>>>
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list