Re: Native class methods

2007-10-09 Thread Chris Mellon
On 09 Oct 2007 17:45:12 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: > "Chris Mellon" <[EMAIL PROTECTED]> writes: > > > On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: > > > > > > Is there an easy way to implement a specific method of a Python class > > > in C? Like a nat

Re: Native class methods

2007-10-09 Thread Jean-Paul Calderone
On 09 Oct 2007 17:45:12 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: >"Chris Mellon" <[EMAIL PROTECTED]> writes: > >> On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: >> > >> > Is there an easy way to implement a specific method of a Python class >> > in C? Like a native m

Re: Native class methods

2007-10-09 Thread Stefan Arentz
"Chris Mellon" <[EMAIL PROTECTED]> writes: > On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: > > > > Is there an easy way to implement a specific method of a Python class > > in C? Like a native method in Java? I would really like to do the > > majority of my class code in

Re: Native class methods

2007-10-09 Thread Diez B. Roggisch
Stefan Arentz wrote: > > Is there an easy way to implement a specific method of a Python class > in C? Like a native method in Java? I would really like to do the > majority of my class code in Python and just do one or two methods > in C. ctypes or subclassing C-implemented classes. Diez -- h

Re: Native class methods

2007-10-09 Thread Chris Mellon
On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote: > > Is there an easy way to implement a specific method of a Python class > in C? Like a native method in Java? I would really like to do the > majority of my class code in Python and just do one or two methods > in C. > > S.