Message414386
The script below fails with an assertion error with python 3.11a5+ (current trunk) when build with --with-pydebug:
# BEGIN OF FILE
class String(str):
__slots__ = ()
name = String("hello")
class Bag:
pass
o = Bag()
setattr(o, name, 42)
# END OF FILE
Error output:
% /tmp/py311/bin/python3 -Xdev str.py (master)pyobjc-8
Assertion failed: (PyUnicode_CheckExact(name)), function _PyObject_StoreInstanceAttribute, file dictobject.c, line 5426.
Fatal Python error: Aborted
Current thread 0x0000000100a98580 (most recent call first):
File "/Users/ronald/Projects/pyobjc-8/pyobjc-core/str.py", line 10 in <module>
zsh: abort /tmp/py311/bin/python3 -Xdev str.py |
|
Date |
User |
Action |
Args |
2022-03-02 21:30:36 | ronaldoussoren | set | recipients:
+ ronaldoussoren |
2022-03-02 21:30:36 | ronaldoussoren | set | messageid: <1646256636.59.0.442198647439.issue46903@roundup.psfhosted.org> |
2022-03-02 21:30:36 | ronaldoussoren | link | issue46903 messages |
2022-03-02 21:30:36 | ronaldoussoren | create | |
|