--- ../../patches/orig_pdb_doc.rst 2013-10-10 13:57:07.000000000 -0700 +++ library/pdb.rst 2013-10-10 13:57:34.000000000 -0700 @@ -309,7 +309,7 @@ ``end`` to terminate the commands. An example:: (Pdb) commands 1 - (com) print some_variable + (com) print(some_variable) (com) end (Pdb) @@ -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:`print` command, except the value of the expression is