[Python-checkins] cpython: #18764: p(rint) -> p in pdb docs.

r.david.murray python-checkins at python.org
Thu Oct 10 23:34:07 CEST 2013


http://hg.python.org/cpython/rev/592579b89d8c
changeset:   86201:592579b89d8c
user:        R David Murray <rdmurray at bitdance.com>
date:        Thu Oct 10 17:33:43 2013 -0400
summary:
  #18764: p(rint) -> p in pdb docs.

Missed changing the doc for the command itself, patch for that also by Connor
Osborn.

files:
  Doc/library/pdb.rst |  8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)


diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -403,10 +403,16 @@
 
    Print the argument list of the current function.
 
-.. pdbcommand:: p(rint) expression
+.. pdbcommand:: p expression
 
    Evaluate the *expression* in the current context and print its value.
 
+   .. note::
+
+      ``print()`` can also be used, but is not a debugger command --- this executes the
+      Python :func:`print` function.
+
+
 .. pdbcommand:: pp expression
 
    Like the :pdbcmd:`p` command, except the value of the expression is

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list