• Guido van Rossum's avatar
    Add a type.__init__() method that enforces the same signature as · f102e24b
    Guido van Rossum yazdı
    type.__new__(), and then calls object.__init__(cls), just to be anal.
    
    This allows us to restore the code in string.py's _TemplateMetaclass
    that called super(...).__init__(name, bases, dct), which I commented
    out yesterday since it broke due to the stricter argument checking
    added to object.__init__().
    f102e24b
string.py 16.3 KB