This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author andrei.avk
Recipients andrei.avk, fcodvpt
Date 2021-07-29.02:27:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627525634.53.0.0879593221789.issue42119@roundup.psfhosted.org>
In-reply-to
Content
Françoise:

You can simply set the two attrs required by __repr__ in the pdb session:

./python.exe ~/temp/a.py                                                                    --INS--
> /Users/ak/opensource/cpython/Lib/logging/__init__.py(1152)__init__()
-> filename = os.fspath(filename)
(Pdb) self.level=1
(Pdb) self.baseFilename='test.log'
(Pdb) a
self = <FileHandler test.log (Level 1)>
filename = 'test.log'
mode = 'a'
encoding = None
delay = False
errors = None
(Pdb)

I think this can be closed as it's not a bug and there's a workaround as shown above.
History
Date User Action Args
2021-07-29 02:27:14andrei.avksetrecipients: + andrei.avk, fcodvpt
2021-07-29 02:27:14andrei.avksetmessageid: <1627525634.53.0.0879593221789.issue42119@roundup.psfhosted.org>
2021-07-29 02:27:14andrei.avklinkissue42119 messages
2021-07-29 02:27:14andrei.avkcreate