Docs: improve accuracy of pdb alias example (GH-102892)

(cherry picked from commit e0c63b7267)

Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
This commit is contained in:
Miss Islington (bot) 2023-03-22 04:44:21 -07:00 committed by GitHub
parent a7a373e1c5
commit 44782d3d34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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