Object and Type Unification

Posted by Simple-Soil-7468@reddit | Python | View on Reddit | 8 comments

Have had a conversation with ChatGPT about the wildest and craziest idea about unifying `object` and `type` into a single entity that has the combined functionality of both. Essentially the equivalent (at the lower level) of doing `class MyEntity(object, type)`.

ChatGPT Conversation

I'd love to know how stupid of an idea this is. I agree it will never happen, and I overly argued the point as shown in the conversation because I wasn't getting very creative/accurate responses.

To me this is just a cool 'what if'. What if they were? How much of a mess would the interpreter code be to actually physically do it?

More importantly, is it physically possible to unify them, with reasonable backwards compatibility ensured (obviously something nuanced like `assert hasattr(type, "__class__")` would be impossible to unify).

Roast me please