mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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:
parent
eaafea86a0
commit
00b50606c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue