Mega Code Archive

 
Categories / Python Tutorial / Function
 

Create an instance to use the class simply as a namespace container

class MyData(object):     pass mathObj = MyData() mathObj.x = 4 mathObj.y = 5 mathObj.x + mathObj.y mathObj.x * mathObj.y