Re: translating Python to Assembler

2008-01-22 Thread Wim Vander Schelden
Python modules and scripts are normally not even compiled, if they have
been,
its probably just the Python interpreter packaged with the scripts and
resources.

My advice is that if you want to learn Python, is that you just read a book
about
it or read only resources. Learning Python from assembler is kind of...
strange.

Not only are you skipping several generations of programming languages,
spanned
over a period of 40 years, but the approach to programming in Python is so
fundamentally different from assembler programming that there is simply no
reason
to start looking at if from this perspective.

I truly hope you enjoy the world of high end programming languages, but
treat them
as such. Looking at them in a low-level representation or for a low-level
perspective
doesn't bear much fruits.

Kind regards,

Wim

On 1/22/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> My expertise, if any, is in assembler. I'm trying to understand Python
> scripts and modules by examining them after they have been
> disassembled in a Windows environment.
>
> I'm wondering if a Python symbols file is available. In the Windows
> environment, a symbol file normally has a PDB extension. It's a little
> unfortunate that Python also uses PDB for its debugger. Google, for
> whatever reason, wont accept queries with dots, hyphens, etc., in the
> query line. For example a Google for "python.pdb" returns +python
> +pdb, so I get a ridiculous number of returns referring to the python
> debugger. I have mentioned this to Google several times, but I guess
> logic isn't one of their strong points.  :-)
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: translating Python to Assembler

2008-01-23 Thread Wim Vander Schelden
On 1/23/08, Christian Heimes <[EMAIL PROTECTED]> wrote:
>
> Wim Vander Schelden wrote:
> > Python modules and scripts are normally not even compiled, if they have
> > been,
> > its probably just the Python interpreter packaged with the scripts and
> > resources.
>
> No, that is not correct. Python code is compiled to Python byte code and
> execute inside a virtual machine just like Java or C#. It's even
> possible to write code with Python assembly and compile the Python
> assembly into byte code.
>
> You most certainly meant: Python code is not compiled into machine code.


I didn't know that python uses a VM, I thought it still used an
interpretter! You
learn something new everyday :)

Thanks,

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