Skip to content

Commit

Permalink
Docs: improve accuracy of pdb alias example (python#102892)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Mar 22, 2023
1 parent d1a89ce commit e0c63b7
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 @@ -513,7 +513,7 @@ can be overridden 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 e0c63b7

Please sign in to comment.