79831146

Date: 2025-11-26 20:56:22
Score: 1
Natty:
Report link

Set __warningregistry__ to None.


>>> import warnings
>>> __warningregistry__ = None
>>> for i in range(3):
...    warnings.warn("oh noes!")

    

Warning (from warnings module):
  File "<pyshell#3>", line 2
UserWarning: oh noes!

Warning (from warnings module):
  File "<pyshell#3>", line 2
UserWarning: oh noes!

Warning (from warnings module):
  File "<pyshell#3>", line 2
UserWarning: oh noes!
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Noddy