Why is python not written in C++ ?

John Nagle nagle at animats.com
Tue Aug 3 19:44:03 CEST 2010

On 8/1/2010 5:36 PM, Roy Smith wrote:
> In article<4c55fe82$0$9111$426a34cc at news.free.fr>,
>   candide<candide at free.invalid>  wrote:
>> Python is an object oriented langage (OOL). The Python main
>> implementation is written in pure and "old" C90. Is it for historical
>> reasons?
>> C is not an OOL and C++ strongly is. I wonder if it wouldn't be more
>> suitable to implement an OOL with another one.
> One thing that comes to mind is that it's much easier to distribute C
> libraries than C++ libraries.
> If I compile a main program with one C compiler and you compile a
> dynamically loaded library with another C compiler on the same box, the
> odds are pretty good they'll interoperate without any problems.

    Not for Python.  Extensions have to be built with essentially the
same version of the same C compiler used for building Python.  This
is a major headache.

				John Nagle

More information about the Python-list mailing list