You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is needing to add these function's considered a regression?
This leads to my second problem, I'm not clear on how these should be implemented. With the above code I get:
File "/usr/lib64/python3.13/logging/init.py", line 1664, in _log
self.handle(record)
~~~~~~~~~~~^^^^^^^^
File "/usr/lib64/python3.13/logging/init.py", line 1680, in handle
self.callHandlers(record)
~~~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib64/python3.13/logging/init.py", line 1736, in callHandlers
hdlr.handle(record)
~~~~~~~~~~~^^^^^^^^
File "/usr/lib64/python3.13/logging/init.py", line 1025, in handle
with self.lock:
^^^^^^^^^
AttributeError: 'DebugHandler' object has no attribute 'lock'
cagney
changed the title
python 3.13->3.13's logging.Handler requres .createLock() et.al., and possibly .lock
python 3.12->3.13's logging.Handler requres .createLock() et.al., and possibly .lock
Oct 16, 2024
Bug report
Bug description:
This code block was working in 3.12 but barfs in 3.13
because my class doesn't provide:
is needing to add these function's considered a regression?
This leads to my second problem, I'm not clear on how these should be implemented. With the above code I get:
According to the docs, NullHandler has https://docs.python.org/3/library/logging.handlers.html#nullhandler
but when I look at the code I find:
I guess I try extending NullHandler()
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: