Problem with simple C extension

2005-06-14 Thread harold fellermann
Am I stupid or what? I want to implement a very simple extension class in C (as I did it many times before...) The python equivalent of my class whould look like: class physics_DPD : def __init__(self,cutoff,friction,noise,dt) : self.cutoff = cutoff self.fr

Re: Problem with simple C extension

2005-06-14 Thread harold fellermann
On 14.06.2005, at 18:58, harold fellermann wrote: > Am I stupid or what? Yes I was ... > // PhysicsDPD instance structure > typedef struct { >PyObject_HEAD >double cutoff; >double friction; >double noise; >double dt; > } hyper_PhysicsDPD; > > > //