This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Martin Jones
Recipients Martin Jones, docs@python
Date 2016-05-11.10:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462963233.92.0.988524057924.issue26997@psf.upfronthosting.co.za>
In-reply-to
Content
when debugging a program at the pdb prompt, attempting to import from the __future__ module appears successful, but actually doesn't work:

(Pdb) from __future__ import division
(Pdb) 2/3
0

This leads to inconsistencies between statements evaluated on the pdb prompt and those evaluated in the program, which can hamper debugging. It would be good to have a note added to the 2.7 documentation for pdb along the lines of:

Note: importing from the __future__ module does not work under pdb.
History
Date User Action Args
2016-05-11 10:40:33Martin Jonessetrecipients: + Martin Jones, docs@python
2016-05-11 10:40:33Martin Jonessetmessageid: <1462963233.92.0.988524057924.issue26997@psf.upfronthosting.co.za>
2016-05-11 10:40:33Martin Joneslinkissue26997 messages
2016-05-11 10:40:33Martin Jonescreate