On Feb 5, 2008 9:21 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 05, 2008 at 09:15:29AM +0100, Sebastian Haase wrote:
> > Can ctypes do this ?
>
> No. Ctypes is only a way of loading C (and not C++) libraries in Python.
> That makes it very simple, but not very powerful.
>
> Gaƫl
(sorry, this email got stuck in moderation, because I used the wrong
sender address)

Thanks fr the reply.
How about "manual" overloading. I mean, if -- for example -- I have
two functions mmms_b and mmms_i in C, I could still use ctypes; could
I then "merge" them into one python function, which "re-routes"
depending on the argument dtype !?
This is what SWIG must be doing internally -- right ?!
Numpy/ctypes  could come with such "re-routing helper meta-function"
(decorators?) out-of-the-box...

Thanks,
-Sebastian
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to