Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; '(at': 0.03; 'languages,': 0.04; 'subject:Python': 0.05; 'granted,': 0.07; 'received:mail- vc0-f174.google.com': 0.09; 'itself.': 0.11; '"if"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'least,': 0.16; 'roy': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'object.': 0.22; 'statement': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'received:209.85.220.174': 0.29; 'function': 0.30; 'code': 0.31; 'could': 0.32; 'him.': 0.33; 'to:addr:python-list': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'but': 0.36; 'detail': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'is.': 0.62; 'making': 0.64; 'smith': 0.71; 'article': 0.78; '2013': 0.84; 'everything.': 0.84; 'furman': 0.84; 'maybe,': 0.84; 'careful': 0.91; 'ethan': 0.91; 'write:': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=RdabSyFTqIO5K0/LGCXsCvAEqdtRzLVjIc2lAI2RKwM=; b=nhTy8OvtpPgn8RCym9NVwNgK+2hl51mbbFP7RG6Q15rEi0LbffdYyfvorvaCbgpJaO gMh4EKt3yJbqSXh7Yv5+7FlKhpfd3Xtj4076HJHxrFgW85Ru7CjiatPoGypvIf2vAWrq qHxcv+IjkSF9xIq8fg9cyjQbpQ+HJl/Ca+kdW2IPbDJeiApEZd2oA2ygMpgfvoOTbGFz RYhm18VIOGofFVEhNfx65P2Ns9avoywsodOxWM7mhXyYsTlOQdiMgrDKIcLodWl6CNUo k9beSxEtiP8739AcwH7xuZ8U6V9mSMGrd7PQL/32UkGpqNa/LCTOw2HcMzGRhD1Rmf9Z FR8Q== MIME-Version: 1.0 X-Received: by 10.220.219.77 with SMTP id ht13mr8755842vcb.66.1361742260895; Sun, 24 Feb 2013 13:44:20 -0800 (PST) In-Reply-To: References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <61471a01-ee6e-4bc6-bd08-8696a31ec1eb@googlegroups.com> <512A795D.8060607@stoneleaf.us> Date: Mon, 25 Feb 2013 08:44:20 +1100 Subject: Re: Python Newbie From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361742263 news.xs4all.nl 6963 [2001:888:2000:d::a6]:42508 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39801 On Mon, Feb 25, 2013 at 8:08 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> > no need to remember what's an object and what's not -- everything is an >> > object Careful on the citations - Ethan Furman said that, I just quoted him. > Well, not quite everything. If I write: > > if foo: > do_this() > and_this() > > the code block making up the body of the "if" statement is not an > object. In some languages, it is. Maybe, but the code of an entire function *is*. Granted, it's not an object that can be built up manually (at least, not that I know of), and it offers only limited functionality (dis.dis, but not a lot else), so really it could be seen as just an implementation detail of the function object itself. But it's still an object. ChrisA