Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'binary': 0.05; 'compiler': 0.05; 'executable': 0.07; 'pypy': 0.07; 'ast': 0.09; 'differently.': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'considers': 0.16; 'driscoll': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; 'compilation': 0.18; 'intermediate': 0.18; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; '(the': 0.22; 'fairly': 0.22; '31,': 0.22; 'exec': 0.22; 'am,': 0.23; 'code,': 0.23; 'code.': 0.23; '2015': 0.23; 'import': 0.24; 'header:In- Reply-To:1': 0.24; 'mike': 0.24; 'wondering': 0.25; 'script': 0.25; 'message-id:@mail.gmail.com': 0.28; "i'm": 0.29; 'work.': 0.30; '"the': 0.32; 'subject:?': 0.34; 'received:google.com': 0.34; 'something': 0.35; 'but': 0.36; 'statement': 0.36; 'subject:" ': 0.36; 'subject:: ': 0.37; 'community': 0.38; 'mean': 0.38; 'enough': 0.39; 'sure': 0.40; 'called': 0.40; 'some': 0.40; 'simple': 0.61; 'topic,': 0.79; 'chrisa': 0.84; 'compiles': 0.84; 'to:none': 0.90; 'serious': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=0dTHCrCDyWhPe2sVn/p2BQZtmFPQfIM8Of1FcBOqVwA=; b=oZ5TIoAWf9AioUxJPp0VaHQ/9q50BHC9Kw0z23D2zG3JZWcI24JIRMM2KFDI+byym7 OX+Xe2J1xtiLJt0opNNn+AjC5gKT9FJ67jNRh5hRg8RgLS+p6eIqpi9N5gC9373uBYLM 6jVmnazzYKYA0s+kyGCyXN+GqDsDADtrZwIJF1Z/BSTkN+biNndRWyY8iVmnA/cjO23G /SV4Wh5AqLpPFNgu2vqPhLXlhYdjmRUInWviFQhhE2Z7euWEGcEbjHmuEh7A+UOCGgLs Q/YBlxqujsiYEW3r9334uL/QRSqQbUXcxux6DHmQgYAUIU8ul1q/xpHbcQWmU2UX80pW Fn+Q== MIME-Version: 1.0 X-Received: by 10.50.141.164 with SMTP id rp4mr4939697igb.2.1433024676073; Sat, 30 May 2015 15:24:36 -0700 (PDT) In-Reply-To: <556A1039.2030201@gmail.com> References: <556A1039.2030201@gmail.com> Date: Sun, 31 May 2015 08:24:35 +1000 Subject: Re: What is considered an "advanced" topic in Python? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433024678 news.xs4all.nl 2935 [2001:888:2000:d::a6]:42019 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91546 On Sun, May 31, 2015 at 5:32 AM, jonathon wrote: > On 29/05/2015 16:01, Mike Driscoll wrote: > >>I was wondering what the community considers to be "intermediate" or "a > dvanced". > > A python script that compiles python code. What do you mean by "compiles"? Something as simple as an import statement or exec call will compile arbitrary Python code, but if that were what you meant, you'd have said "the exec() function". (The implementation of namedtuple uses exec, and I think that would definitely count as "advanced".) Or do you mean compiling to AST and exploring the AST? That's a fairly reasonable intermediate topic, though again, if that's what you meant, I'm sure you would have worded it differently. The only other form of compilation I can think of is going to an executable binary (the way a C compiler does), and that's some serious work. I don't think PyPy is small enough to be called a "script". :) ChrisA