Empty Class constructor : Class Constructor : Class PYTHON examples


PYTHON examples » Class » Class Constructor »

 

Empty Class constructor



class C(object):
    def __init__(self, parameter): pass

x = C.__new__(C, 23)

if isinstance(x, C)
     C.__init__(x, 23)

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Class
» Class Constructor