Re: Importing from __future__ doesn't work under PDB

2016-05-11 Thread martin846
Many thanks for the quick reply. I must admit I was surprised not to find any note about this anywhere in the docs (or indeed anywhere online); it seems like something that people would have run into before. I've added a request to the documentation tracker to have a note added to help people wh

Re: Importing from __future__ doesn't work under PDB

2016-05-11 Thread Chris Angelico
On Wed, May 11, 2016 at 7:52 PM, wrote: > In other words, I get different results for the same expression (2/3) in the > program and on the pdb prompt, which makes debugging tricky. I cannot figure > out how to persuade pdb to actually load the division module. Is there an > approved way? Norm

Importing from __future__ doesn't work under PDB

2016-05-11 Thread martin846
Hi folks, I've been trying to use pdb to debug a Python 2.7 program and this has really stumped me. When debugging a program that uses from __future__ import division in Python 2.7, it would be useful to be able to have the same behaviour at the pdb prompt. However, it looks like pdb d