<br><div class="gmail_quote">On Sun, Jun 17, 2012 at 2:54 AM, gmspro <span dir="ltr"><<a href="mailto:gmspro@yahoo.com" target="_blank">gmspro@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">We know python is written in C.<br></td></tr></tbody></table></blockquote><div>Yes, at least CPython is.  Of course, java is written in C, as are many other languages.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
C is not portable.<br></td></tr></tbody></table></blockquote><div>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).<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
So how does python work on a webserver like apache/httpd for a python website?<br></td></tr></tbody></table></blockquote><div>I guess this is kind of like asking how you breathe.  Python just gets exec'd or dlopen'd or something.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
How does the intermediate language communicate with server without compiling python code?<br></td></tr></tbody></table></blockquote><div>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.<br>
<br>IOW, CPython is compiled, it just doesn't burden the developer with a separate compile step.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Or how does python interpreted code work with webserver for python based websites?<br></td></tr></tbody></table></blockquote>
<div>Please see above.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
Please elaborate/explain this topic with example.<br></td></tr></tbody></table></blockquote><div>You may get better answers if you get into more specifics about what your question really is.<br></div></div><br>