Enhance type name formatting when raising an exception: add %T format in C, and add type.__fullyqualname__

%T sounds good, I often wished we had that :slight_smile:
Instead of adding a computed attribute, __fullyqualname__, let’s maybe put a function in e.g. inspect? It could handle functions as well as types.
The f"{type(x):#T}" sounds great too, except T might not be the right choice for a type-specific directive.

1 Like