Message398452
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. |
|
Date |
User |
Action |
Args |
2021-07-29 02:27:14 | andrei.avk | set | recipients:
+ andrei.avk, fcodvpt |
2021-07-29 02:27:14 | andrei.avk | set | messageid: <1627525634.53.0.0879593221789.issue42119@roundup.psfhosted.org> |
2021-07-29 02:27:14 | andrei.avk | link | issue42119 messages |
2021-07-29 02:27:14 | andrei.avk | create | |
|