Next / Previous / Contents / TCC Help System / NM Tech homepage

26.2.1. __new__(): New instance creation

New-style classes have a new special method name, __new__(), that is called on instantiation before the constructor. It handles the creation of a new instance.