diff options
author | gaogaotiantian <gaogaotiantian@hotmail.com> | 2023-03-22 11:34:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 11:34:52 (GMT) |
commit | e0c63b72671bf816d3073f1a6a9107f6c171cae7 (patch) | |
tree | ce935fe2527e5c41e4e57542ff54b9aee7a28826 /Doc | |
parent | d1a89ce5156cd4e1eff5823ec2200885c43e395e (diff) | |
download | cpython-e0c63b72671bf816d3073f1a6a9107f6c171cae7.zip cpython-e0c63b72671bf816d3073f1a6a9107f6c171cae7.tar.gz cpython-e0c63b72671bf816d3073f1a6a9107f6c171cae7.tar.bz2 |
Docs: improve accuracy of pdb alias example (#102892)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pdb.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 21c6ca8..5988477 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -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 |