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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2022-03-06.20:19:52.404>created_at=<Date2022-03-02.21:30:36.583>labels= ['interpreter-core', 'type-crash', '3.11']
title='Crash when setting attribute with string subclass as the name (--with-pydebug)'updated_at=<Date2022-03-07.07:06:38.693>user='https://github.com/ronaldoussoren'
A hard crash seems wrong to me, and I'm not convinced yet that checking that the type of the attribute name is exactly string is correct.
Found while debugging a crash in PyObjC's testsuite, PyObjC uses a subclass of str to represent Objective-C strings. Using such instances works fine in practice, but causes a crash in a --with-pydebug build due to this assertion.