extension: how to implement module function, object method

Lyle Johnson ljohnson at resgen.com
Tue May 8 12:51:13 EDT 2001


> Can anyone tell me why it is not done in C along the lines of the
> following example code fragment?

I suspect that the simple answer is that given a choice between maintaining
C code and maintaining Python code, the author chose Python. In other words,
keep the amount of C code required to implement an extension at a minimum,
unless there are serious performance issues at stake.





More information about the Python-list mailing list