Dec-20-2017, 04:33 AM
I should probably add: I did this duplication check work originally in Regex.__new__(), but my frustration with derived.__init__() behavior and having to check if this object had already been initialized drove me to consider metaclasses. However, derived.__new__() is the best place to check for simplification since the rules are specific to each subclass...