Docs: improve accuracy of pdb alias example (#102892)

This commit is contained in:
gaogaotiantian 2023-03-22 04:34:52 -07:00 committed by GitHub
parent d1a89ce515
commit e0c63b7267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ can be overridden by the local file.
:file:`.pdbrc` file):: :file:`.pdbrc` file)::
# Print instance variables (usage "pi classInst") # 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 # Print instance variables in self
alias ps pi self alias ps pi self