[Python-3000] Modules with Dual Python/C Implementations

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Dec 13 00:47:45 CET 2006


Thomas Wouters wrote:

> Except, of course, when the Python versions has features the C version 
> does not (thinking specifically of StringIO and unicode here.)

Yes, I'm assuming the case where the Python and C
versions are functionally equivalent. If not, then
either the extra features of the Python version should
be ported to the C version first, or the features
should be partitioned into two non-overlapping
modules. Having two almost-but-not-quite identically
functioning modules is not a good idea.

--
Greg


More information about the Python-3000 mailing list