diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-10-10 21:23:26 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-10-10 21:23:26 (GMT) |
commit | 78d692f98e395f3fc4ec2f53343a67bb1d0e94c5 (patch) | |
tree | aee46766ae650cf4be85704bf5082bbef53abb25 /Doc/whatsnew/3.4.rst | |
parent | 2fe9bac4dca34e86d44b7e169f3795fde4c841a1 (diff) | |
download | cpython-78d692f98e395f3fc4ec2f53343a67bb1d0e94c5.zip cpython-78d692f98e395f3fc4ec2f53343a67bb1d0e94c5.tar.gz cpython-78d692f98e395f3fc4ec2f53343a67bb1d0e94c5.tar.bz2 |
18764: remove the problematic 'print' alias for the PDB 'p' command.
So that it no longer shadows the print function.
Patch by Connor Osborn, doc and test changes by R. David Murray.
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r-- | Doc/whatsnew/3.4.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index ed4ea17..373f8de 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -302,6 +302,22 @@ descriptors or a Windows handle: * :func:`os.get_handle_inheritable`, :func:`os.set_handle_inheritable` +pdb +--- + +The ``print`` command has been removed from :mod:`pdb`, restoring access to the +``print`` function. + +Rationale: Python2's ``pdb`` did not have a ``print`` command; instead, +entering ``print`` executed the ``print`` statement. In Python3 ``print`` was +mistakenly made an alias for the pdb :pdbcmd:`p` command. ``p``, however, +prints the ``repr`` of its argument, not the ``str`` like the Python2 ``print`` +command did. Worse, the Python3 ``pdb print`` command shadowed the Python3 +``print`` function, making it inaccessible at the ``pdb`` prompt. + +(Contributed by Connor Osborn in :issue:`18764`.) + + poplib ------ |