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

2007-03-01 Thread Alexandre Vassalotti
On 12/18/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I think a reasonable solution here is to make the C version an > optional implementation detail of the Python version, such as was done > for the heapq module already (the C version is _heapq and > automatically imported by heapq.py if it e

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

2006-12-19 Thread Guido van Rossum
On 12/19/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > I think a reasonable solution here is to make the C version an > > optional implementation detail of the Python version, such as was done > > for the heapq module already (the C version is _heapq and > > automaticall

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

2006-12-19 Thread Nick Coghlan
Guido van Rossum wrote: > I think a reasonable solution here is to make the C version an > optional implementation detail of the Python version, such as was done > for the heapq module already (the C version is _heapq and > automatically imported by heapq.py if it exists). If this requires > that s

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

2006-12-18 Thread Guido van Rossum
I think a reasonable solution here is to make the C version an optional implementation detail of the Python version, such as was done for the heapq module already (the C version is _heapq and automatically imported by heapq.py if it exists). If this requires that some of the C modules need to be up

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

2006-12-12 Thread Greg Ewing
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 Py

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

2006-12-12 Thread Ronald Oussoren
On Dec 11, 2006, at 9:10 PM, Brett Cannon wrote: On 12/10/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: Has anyone considered consolidating the module pairs that have both a C and Python implementation? For example, pickle and cPickle and StingIO and cStringIO. It seems like keeping both aro

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

2006-12-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Dec 11, 2006, at 6:50 PM, Greg Ewing wrote: > I say stop worrying and ditch the Python version. An > alternative Python implementation is going to have to > provide implementations of all the existing C-only > modules. A few more isn't going to kil

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

2006-12-11 Thread Thomas Wouters
On 12/11/06, Greg Ewing <[EMAIL PROTECTED]> wrote: Brett Cannon wrote: > It has been suggested we actually > ditch the C version since we only want to maintain one version and the > Python version can be used by alternative Python implementations. Then we would lose all the speed advantages tha

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

2006-12-11 Thread Greg Ewing
Brett Cannon wrote: > It has been suggested we actually > ditch the C version since we only want to maintain one version and the > Python version can be used by alternative Python implementations. Then we would lose all the speed advantages that were presumably thought important when the C versi

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

2006-12-11 Thread Blake Winton
Brett Cannon wrote: > This has been argued about before. It has been suggested we actually > ditch the C version since we only want to maintain one version and the > Python version can be used by alternative Python implementations. > > This probably needs to be covered in a PEP that covers a st

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

2006-12-11 Thread Brett Cannon
On 12/10/06, Calvin Spealman <[EMAIL PROTECTED]> wrote: Has anyone considered consolidating the module pairs that have both a C and Python implementation? For example, pickle and cPickle and StingIO and cStringIO. It seems like keeping both around might be counter productive. It leads to more co