Message302829
The following code causes an assertion failure:
__name__ = b'foo'
__file__ = None
import _warnings
_warnings.warn('bar')
This is because setup_context() (in Python/_warnings.c) assumes that __name__
is a string, and so it passes it to _PyUnicode_EqualToASCIIString(), which
asserts it is a string. |
|
Date |
User |
Action |
Args |
2017-09-24 06:53:41 | Oren Milman | set | recipients:
+ Oren Milman |
2017-09-24 06:53:40 | Oren Milman | set | messageid: <1506236021.0.0.982819081718.issue31566@psf.upfronthosting.co.za> |
2017-09-24 06:53:40 | Oren Milman | link | issue31566 messages |
2017-09-24 06:53:40 | Oren Milman | create | |
|