On Sun, Jun 17, 2012 at 2:54 AM, gmspro <gms...@yahoo.com> wrote: > We know python is written in C. > Yes, at least CPython is. Of course, java is written in C, as are many other languages.
> C is not portable. > C gives you lots of rope to hang yourself with, but if you use C well, it's more portable than anything else, including the "portable" languages (the ones that don't give you much rope). > So how does python work on a webserver like apache/httpd for a python > website? > I guess this is kind of like asking how you breathe. Python just gets exec'd or dlopen'd or something. > How does the intermediate language communicate with server without > compiling python code? > CPython is to .pyc as java is to .class. They're both byte-compiled. Java is more commonly JIT compiled than CPython, but Python in general does allow JIT compilation. IOW, CPython is compiled, it just doesn't burden the developer with a separate compile step. > Or how does python interpreted code work with webserver for python based > websites? > Please see above. > Please elaborate/explain this topic with example. > You may get better answers if you get into more specifics about what your question really is.
-- http://mail.python.org/mailman/listinfo/python-list