Skip to content

Commit

Permalink
Docs: improve accuracy of pdb alias example (pythonGH-102892)
Browse files Browse the repository at this point in the history
(cherry picked from commit e0c63b7)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
  • Loading branch information
miss-islington and gaogaotiantian committed Mar 22, 2023
1 parent eaafea8 commit 00b5060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ by the local file.
:file:`.pdbrc` file)::

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

Expand Down

0 comments on commit 00b5060

Please sign in to comment.