genshi

Why is __init__ not called after __new__ SOMETIMES

流过昼夜 提交于 2019-11-27 23:50:12
问题 Let me start with this is not a repeat of Why does __init__ not get called if __new__ called with no args. I have tried to carefully construct some sample code for __new__ and __init__ that has no explanation I can find. The basic parameters: There is a base class called NotMine as it comes from another library (I'll disclose at the end, not important here) That class has an __init__ method that in turn calls a _parse method I need to override the _parse method in subclasses which subclass I