Defining Python class methods in C

Bryan belred1 at yahoo.com
Sun Mar 23 09:42:26 EST 2003


thank you both for your help.  i didn't know that classes and types
were two different things.  i coded it as a type according to the
example in "python in a nutshell" and it worked correctly the first
time.  i wish i never saw the cookbook example... it would have saved
me countless hours of agony.  classes have data and methods and types
have data and methods.  in python i write classes all the time, so
naturally i gravitated towards the class example in c.  i take it from
john's posting, that classes are uses to be compatible with older
versions of python.

bryan




More information about the Python-list mailing list