Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Python programming philosophy

Reply
Thread Tools

Re: Python programming philosophy

 
 
88888 Dihedral
Guest
Posts: n/a
 
      01-06-2013
chaouche yacine於 2013年1月6日星期日UTC+8上午6時34分38秒 道:
> The compiler reads your source code and parses it into parse trees. This is first step. It then takes the parse trees and transform them into abstract syntax trees, which are like a DOM tree in an HTML file, and then transform that AST into a control flow graph, and finally a bytecode is produced out of that control flow graph. The pyc files you see are this bytecode, sothey are produced at the end. Anytime you edit your .py file, a new .pyc file is created if you invoke the python interpreter myfile.py on the former.. If your .py file doesn't change, the .pyc file stays the same.
>
> Just like with java, this allows you to write a single .py file that can work on any platform without changing the source file, because all the cross platform issues are handled by the virtual machine.
>
>
>
>
> ________________________________
> From: Nac Temha <nacct...@gmail.com>
> To: pytho...@python.org
> Sent: Saturday, January 5, 2013 11:05 PM
> Subject: Python programming philosophy
>
>
> Hello,
>
>
>
> I want to learn working principle of python as broadly. How to interpret the python? *For example, what is pyc files and when does it occur?
> Can you explain them? Thanks in advance.
> --
> http://mail.python.org/mailman/listinfo/python-list


Yes, check JYTHON tutorials to understand dynamic types.

Java is still a fixed type computer language.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python programming philosophy Nac Temha Python 2 01-06-2013 04:35 AM
Re: Python programming philosophy 88888 Dihedral Python 0 01-06-2013 03:41 AM
Re: Python programming philosophy Chris Angelico Python 0 01-05-2013 10:15 PM
RE: Python's simplicity philosophy Tim Peters Python 1 11-15-2003 10:01 AM
New C++ Book - C++ For Artists: The Art. Philosophy, And Science Of Object-Oriented Programming Rick Miller C++ 0 07-28-2003 01:56 PM



Advertisments