[New-bugs-announce] [issue26997] Docs for pdb should note that __future__ magic doesn't work

Martin Jones report at bugs.python.org
Wed May 11 06:40:33 EDT 2016

New submission from Martin Jones:

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

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.

assignee: docs at python
components: Documentation
messages: 265300
nosy: Martin Jones, docs at python
priority: normal
severity: normal
status: open
title: Docs for pdb should note that __future__ magic doesn't work
type: enhancement
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list