"??" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

|    I wonder whether python compiler does basic optimizations to .py.

In general, the answer to such questions depends on the implementation and 
version thereof.  For CPython, you can look at bytecode with the dis module 
as another poster showed.

| Again, how about contant calculation?
| Eg:
| a = 1 + 2
| .vs.
| a = 3

This was added to CPython in version 2.5, I believe. 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to