[New-bugs-announce] [issue5215] change value of local variable in debug

mproeller report at bugs.python.org
Wed Feb 11 08:43:02 CET 2009


New submission from mproeller <mproeller at googlemail.com>:

The following code produces problems:

import pdb
def func():
	b = 13
	pdb.set_trace()
	a = b + 2
	print a
func()

If I change the value of b (e.g. to 3) everything works fine
(print a => displays 5)
but if I want to change b (e.g. to 3) and display the value,
it is reset to 13
(and print a displays 15)

----------
components: None
messages: 81631
nosy: mproeller
severity: normal
status: open
title: change value of local variable in debug
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5215>
_______________________________________


More information about the New-bugs-announce mailing list