Is a "real" C-Python possible?

Terry Reedy tjreedy at udel.edu
Sun Dec 9 17:36:18 EST 2007


"Jack" <nospam at invalid.com> wrote in message 
news:G62dnbBDl_Y0x8HanZ2dnUVZ_gudnZ2d at comcast.com...
|I understand that the standard Python distribution is considered
| the C-Python. Howerver, the current C-Python is really a combination
| of C and Python implementation. There are about 2000 Python files
| included in the Windows version of Python distribution.

About half or fewer are modules meant to be imported into programs.  The 
rest comprise utility programs and test programs.  The core interpreter is 
all C.

| because the core modules that matter are already in C

Correct.  There are about 20 'builtin' modules written is C either because 
they need low level access to the machine or for speed concerns.  Third 
party modules not included in the standard distribution but definitely part 
of the Python universe are also a mix.

If people wrote everything in C for speed, there would be no need for 
Python!!

And don't say that you want everyone else to write in C while you enjoy the 
pleasures of Python ;-).

tjr






More information about the Python-list mailing list