Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-13 Thread Djoume Salvetti
On Tue, Apr 12, 2011 at 1:22 PM, Guido van Rossum gu...@python.org wrote: Looking at the pastebin you are using !lv = 2. Why the !? Without it, it works fine: I just wanted to make sure I was executing a python statement and not a pdb alias. I re-tested without the exclamation mark and still

[Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Djoume Salvetti
Hi there, When calling pdb.set_trace() from within a function, it seems to be impossible to rebind any local variables: http://paste.pound-python.org/show/5150/ I couldn't find anything in the documentation about this, should I report a bug? -- Djoume Salvetti Director of Development

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Alexander Belopolsky
On Tue, Apr 12, 2011 at 11:15 AM, Djoume Salvetti dsalve...@trapeze.com wrote: .. When calling pdb.set_trace() from within a function, it seems to be impossible to rebind any local variables: Works for me (using latest HG clone): $ cat test.py gv = 1 def f(): lv = 1 import pdb;

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Terry Reedy
On 4/12/2011 12:17 PM, Alexander Belopolsky wrote: If you find specific versions that are affected by this bug, please report it at bugs.python.org. If Py version = 2.7 and != 3.0. -- Terry Jan Reedy ___ Python-Dev mailing list

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Djoume Salvetti
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. -- Djoume Salvetti Director of Development T:416.601.1999 x 249 www.trapeze.com twitter: trapeze 175 Bloor St. E., South Tower, Suite 900

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Michael Foord
On 12/04/2011 18:01, Djoume Salvetti 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. Both Python 2.5 and 2.6 are in security fix only mode I'm afraid, so won't receive fixes for

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Guido van Rossum
On Tue, Apr 12, 2011 at 10:01 AM, Djoume Salvetti dsalve...@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

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Guido van Rossum
On Tue, Apr 12, 2011 at 11:01 AM, Djoume Salvetti dsalve...@trapeze.com wrote: On Tue, Apr 12, 2011 at 1:22 PM, Guido van Rossum gu...@python.org wrote: Looking at the pastebin you are using !lv = 2. Why the !? Without it, it works fine: I just wanted to make sure I was executing a python

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Mark Dickinson
On Tue, Apr 12, 2011 at 6:01 PM, Djoume Salvetti dsalve...@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. Is http://bugs.python.org/issue5215 the same issue? Mark

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Lennart Regebro
Hasn't it always been like that? I tried with Python 2.3 now and it's the same. I have no memory of that actually changing an existing variable in any version of Python I've used. More testing turns out that this works: - print lv is , lv (Pdb) lv=2 (Pdb) c lv is 2 While this seem to reset is:

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread Guido van Rossum
On Tue, Apr 12, 2011 at 1:05 PM, Lennart Regebro rege...@gmail.com wrote: Hasn't it always been like that? I tried with Python 2.3 now and it's the same. I have no memory of that actually changing an existing variable in any version of Python I've used. More testing turns out that this works:

Re: [Python-Dev] Bug? Can't rebind local variables after calling pdb.set_trace()

2011-04-12 Thread R. David Murray
On Tue, 12 Apr 2011 22:05:57 +0200, Lennart Regebro rege...@gmail.com wrote: This is the same from Python 2.3 to 2.6. I thought is just was a lack of feature, that there for some reason was really hard to change the value of an existing variable from the debugger. I though that for ten years.