How do I call super() in c extention ?

Stefan Behnel stefan_ml at behnel.de
Fri Jan 27 02:48:06 EST 2012


umedoblock, 27.01.2012 03:03:
> I'd like to call super() in c extension.
> I'd like to rewrite class Baa as c extension.

Have you considered using Cython for this? It will allow you to do exactly
that with only minor changes to your Python code (if any). And it's quite
likely that the C code that it generates from your Python code will be more
efficient than what you'd write manually. Certainly more readable and
maintainable.

Stefan




More information about the Python-list mailing list