Add a member variable to a class on the fly : Class fields : Class PYTHON examples


PYTHON examples » Class » Class fields »

 

Add a member variable to a class on the fly


Add a member variable to a class on the fly
 

class C2: pass
C2.x = 23
print C2.x                    

           
         
  



Leave a Comment / Note


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


PYTHON examples

 Navioo Class
» Class fields