lots of similar classes?

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon Jan 20 10:20:32 EST 2003


boncelet at udel.edu (boncelet) wrote in 
news:53ce2726.0301200637.611c2041 at posting.google.com:

> My problem is rewriting the "lot_of_other_arguments" over and over
> again seems wasteful, error-prone, and fragile.  Is there a better
> way?

class A(Super):
    def __init__(self, name='a', **args):
        Super.__init__(self, name, **args)


-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?




More information about the Python-list mailing list