Class definition syntax in python -
i new python.i working python code.i trying map python object oriented concepts of c++ think way learn.i can across 2 types of class definitions. class sourcetoport(base): """""" __tablename__ = 'source_to_port' id = column(integer, primary_key=true) port_no = column(integer) src_address = column(string) #---------------------------------------------------------------------- def __init__(self, src_address,port_no): """""" self.src_address = src_address self.port_no = port_no and second one. class tutorial (object): def __init__ (self, connection): print "calling tutorial __init__" self.connection = connection connection.addlisteners(self) self.mac_to_port = {} self.matrix={} i want know difference between base in sourcetoport , object in tutorial? you seem using sqlalchemy in first case. not miss di...