diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-22 11:41:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 11:41:54 (GMT) |
commit | 00b50606c0b323cbdcb007fe0785cded98f9519a (patch) | |
tree | 825759c22012fa00e6a47871fff713b2c3bc0745 | |
parent | eaafea86a0f49428092d359391d0a184d9ef8531 (diff) | |
download | cpython-00b50606c0b323cbdcb007fe0785cded98f9519a.zip cpython-00b50606c0b323cbdcb007fe0785cded98f9519a.tar.gz cpython-00b50606c0b323cbdcb007fe0785cded98f9519a.tar.bz2 |
Docs: improve accuracy of pdb alias example (GH-102892)
(cherry picked from commit e0c63b72671bf816d3073f1a6a9107f6c171cae7)
Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
-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 3b4a57d..8df518c 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -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 |