8000 Docs: improve accuracy of pdb alias example (GH-102892) · miss-islington/cpython@f12d216 · GitHub
[go: up one dir, main page]

Skip to content

Commit f12d216

Browse files
gaogaotiantianmiss-islington
authored andcommitted
Docs: improve accuracy of pdb alias example (pythonGH-102892)
(cherry picked from commit e0c63b7) Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
1 parent a7a373e commit f12d216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ can be overridden by the local file.
513513
:file:`.pdbrc` file)::
514514

515515
# Print instance variables (usage "pi classInst")
516-
alias pi for k in %1.__dict__.keys(): print("%1.",k,"=",%1.__dict__[k])
516+
alias pi for k in %1.__dict__.keys(): print(f"%1.{k} = {%1.__dict__[k]}")
517517
# Print instance variables in self
518518
alias ps pi self
519519

0 commit comments

Comments
 (0)
0