pdb show different variable values than print statements

Posted by martin on Stack Overflow See other posts from Stack Overflow or by martin
Published on 2010-03-21T00:35:38Z Indexed on 2010/03/21 0:41 UTC
Read the original article Hit count: 565

Filed under:
|
|
|

Hi, everyone.

I am debugging a python module with homemade c extensions. The output seems correct when I print it with 'p' in pdb. But if I use a normal print statement or pickle it, the output is wrong. What could be causing pdb to show different values than normal execution? I can even step to the print statement in debug mode, and pdb will show the correct value but the program will print the wrong one. The problem seems to happen only when I have called a certain c extension earlier. Glad to post code if that helps. Thank you.

© Stack Overflow or respective owner

Related posts about python

Related posts about pdb