Skip to content

Commit 649b7d1

Browse files
gaogaotiantianwarsaw
authored andcommitted
Docs: improve accuracy of pdb alias example (python#102892)
1 parent 8754566 commit 649b7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/pdb.rst

+1-1
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)