Skip to content

Commit 00b5060

Browse files
Docs: improve accuracy of pdb alias example (GH-102892)
(cherry picked from commit e0c63b7) Co-authored-by: gaogaotiantian <[email protected]>
1 parent eaafea8 commit 00b5060

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
@@ -509,7 +509,7 @@ by the local file.
509509
:file:`.pdbrc` file)::
510510

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

0 commit comments

Comments
 (0)