Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36222

Re: Python programming philosophy

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <dihedral88888@googlemail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'syntax': 0.03; 'interpreter': 0.04; 'subject:Python': 0.05; 'compiler': 0.05; 'transform': 0.05; 'python': 0.09; 'ast': 0.09; 'to:addr:comp.lang.python': 0.09; 'trees': 0.09; 'cc:addr:python- list': 0.10; 'advance.': 0.15; 'file,': 0.15; 'java,': 0.15; 'tutorials': 0.15; '.py': 0.16; '8bit%:72': 0.16; 'bytecode': 0.16; 'subject:programming': 0.16; 'python?': 0.20; 'java': 0.21; 'interpret': 0.22; 'machine.': 0.22; 'parse': 0.22; 'programming': 0.23; 'allows': 0.25; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'language.': 0.27; 'cc:2**2': 0.27; 'change,': 0.27; 'tree': 0.27; "doesn't": 0.28; 'fixed': 0.28; 'dom': 0.29; 'invoke': 0.29; 'them?': 0.29; 'types.': 0.29; 'url:mailman': 0.29; 'handled': 0.29; 'source': 0.29; 'code': 0.31; 'url:python': 0.32; 'file': 0.32; 'skip:_ 30': 0.32; 'url:listinfo': 0.32; 'produced': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'from:addr:googlemail.com': 0.35; 'same.': 0.35; 'received:209.85': 0.35; 'subject:': 0.36; 'created': 0.36; 'explain': 0.36; 'url:org': 0.36; 'flow': 0.36; 'email addr:python.org': 0.36; 'does': 0.37; 'sent:': 0.37; 'virtual': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'files': 0.38; 'takes': 0.39; 'hello,': 0.39; 'url:mail': 0.40; 'your': 0.60; 'first': 0.61; 'finally': 0.66; 'cc:addr:yahoo.com': 0.71; '2013': 0.84; 'step.': 0.91
X-Received by 10.50.197.195 with SMTP id iw3mr688158igc.10.1357443707724; Sat, 05 Jan 2013 19:41:47 -0800 (PST)
Newsgroups comp.lang.python
Date Sat, 5 Jan 2013 19:41:47 -0800 (PST)
In-Reply-To <mailman.153.1357425282.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=123.192.32.215; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw
References <CAFLxTvm4ytk5nRn0bxYegagkidRsXxJp2jPa=mP_o2DJUsxrkA@mail.gmail.com> <mailman.153.1357425282.2939.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 123.192.32.215
MIME-Version 1.0
Subject Re: Python programming philosophy
From 88888 Dihedral <dihedral88888@googlemail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.154.1357443716.2939.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357443716 news.xs4all.nl 6869 [2001:888:2000:d::a6]:35873
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36222

Show key headers only | View raw


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, so they 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Python programming philosophy chaouche yacine <yacinechaouche@yahoo.com> - 2013-01-05 14:34 -0800
  Re: Python programming philosophy 88888 Dihedral <dihedral88888@googlemail.com> - 2013-01-05 19:41 -0800
  Re: Python programming philosophy 88888 Dihedral <dihedral88888@googlemail.com> - 2013-01-05 19:41 -0800

csiph-web