Skip to content
Advertisement

Tag: metaprogramming

Dynamically created classes with the same name

I’m trying to dynamically create subclasses in Python with type: and here’s what I see in the output: Obviously, this was not my intention. Two questions in that respect: How does Python handles multiple classes with identical names? What is a pythonic way to handle it? Of course, I can look up the name in the already existing subclasses, but

Advertisement