mirror of https://github.com/python/cpython
Docs: improve accuracy of pdb alias example (#102892)
This commit is contained in:
parent
d1a89ce515
commit
e0c63b7267
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue