Re: How does python bytecode works?

2012-06-18 Thread Kushal Kumaran
On Mon, Jun 18, 2012 at 1:23 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Sun, Jun 17, 2012 at 5:54 AM, gmspro gms...@yahoo.com wrote: We know python is written in C. C is not portable. Badly written C is not portable. But C is probably the most portable language on the planet, by

How does python bytecode works?

2012-06-17 Thread gmspro
We know python is written in C. C is not portable. So how does python work on a webserver like apache/httpd for a python website? How does the intermediate language communicate with server without compiling python code? Or how does python interpreted code work with webserver for python based

Re: How does python bytecode works?

2012-06-17 Thread Kev Dwyer
gmspro wrote: We know python is written in C. C is not portable. So how does python work on a webserver like apache/httpd for a python website? How does the intermediate language communicate with server without compiling python code? Or how does python interpreted code work with webserver

Re: How does python bytecode works?

2012-06-17 Thread Terry Reedy
On 6/17/2012 5:54 AM, gmspro wrote: We know python is written in C. Nope. The CPython Python interpreter is written in (as portable as possible) C. The Jython, IronPython, and PyPy Python interpreters are written in Jave, C#, and Python respectively. Each compiles Python to something

Re: How does python bytecode works?

2012-06-17 Thread Devin Jeanpierre
On Sun, Jun 17, 2012 at 5:54 AM, gmspro gms...@yahoo.com wrote: We know python is written in C. C is not portable. Badly written C is not portable. But C is probably the most portable language on the planet, by virtue of basically every system having a C compiler backend. The issue is that a

Re: How does python bytecode works?

2012-06-17 Thread Dan Stromberg
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