2 replies

by stress junkie

Okay so we have a new common network framework for applications. They've also created a bunch of critical network functions based on this framework. All of this is based on Python and it was created at MIT.

Question: Why? What is the advantage. The web page says that the fact that it is based on Python allows developers to enjoy more robust error handling. Is that true? It seems to me that there have been numerous security patches to Python in recent years. Is Python code better than C code? I don't know, I'm just asking.

by jaqui

between python and c are along the lines of interpreted and compiled.

python was designed as a general purpose scripting language.

c was designed as a general purpose programming language

if you put mod_python into apache, it can even be your webscript language, with very little in the way of code changes. [ output formatting for html really ]

if you use c, you have to compile it and use as cgi, and the networking functionality is a huge amount of code.

take a perl cgi script, convert to python, it should work.
convert it to c, you have to add the code for the webserver / networking interface to it.

but yeah, the error stack in c is more limited than the error stack in python. because the python developers expect more errors?

This discussion is closed to new replies.