Re: How does python bytecode works?

2012-06-17 Thread Kushal Kumaran
On Mon, Jun 18, 2012 at 1:23 AM, Devin Jeanpierre wrote: > On Sun, Jun 17, 2012 at 5:54 AM, gmspro 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 sys

Re: How does python bytecode works?

2012-06-17 Thread Dan Stromberg
On Sun, Jun 17, 2012 at 2:54 AM, gmspro 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 anyth

Re: How does python bytecode works?

2012-06-17 Thread Devin Jeanpierre
On Sun, Jun 17, 2012 at 5:54 AM, gmspro 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 lot of people

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 differe

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 webser

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 webs