Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:error': 0.03; 'argument': 0.05; 'builtin': 0.09; 'cc:addr:python-list': 0.11; 'bool': 0.16; 'callable': 0.16; 'callable,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'function).': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'purposes': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; '25,': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'object,': 0.36; '(i.e.,': 0.38; 'list,': 0.38; 'ian': 0.60; 'name': 0.63; 'kind': 0.63; 'here': 0.66; 'returns.': 0.84; 'subject:Lists': 0.91; 'to:none': 0.92 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=wePj/so+T4EC4NPyVmuBl7LrTSg3cPz/x7jwAY1UxzM=; b=F52YUrAKdi8ar6k4sj25YYzEFDyEykPatcpCEQBsp/KZNVp37ubg/B4f5k4L86/3Yx Wkavc8Bq/8Fp1TkwgB792mb8G2Fhu/BZDlyvu1sjuo/QqevbY91X1QWJNuTAEGThPsbV cZcZQA/rrxqTJiNfyhFXIvPfZQmbhDNuMS3wO1TT0LoW+uO8spvWsOLrxVZ+q0275iHP vo8XCO3mkmKRwyHwwBIDEfD3xlVi9raGTwWZgZl3/NkqhWhZoalwCqEPwa+IYOsGTVxZ aODUOIt+4dPqy7gzRNkwi5tSzpC4e55e/e3KfmjComfHd4AiQp6ijIbHrHnM5wleJkgo MItw== MIME-Version: 1.0 X-Received: by 10.42.37.138 with SMTP id y10mr4693377icd.26.1414170645421; Fri, 24 Oct 2014 10:10:45 -0700 (PDT) In-Reply-To: References: <2412654f-ac5e-4678-8956-afc4e27affb3@googlegroups.com> <3082ee74-3182-4ea5-9851-2b1326e5b34c@googlegroups.com> Date: Sat, 25 Oct 2014 04:10:45 +1100 Subject: Re: I am out of trial and error again Lists From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414170654 news.xs4all.nl 2845 [2001:888:2000:d::a6]:35034 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79587 On Sat, Oct 25, 2014 at 4:05 AM, Ian Kelly wrote: > The name of the builtin is "list". It's a function* that takes an > argument and uses it to construct a list, which it returns. > > *Actually it's a type object, and calling it causes an instance of the > type to be constructed, but for all intents and purposes here it works > exactly like a function. It's callable, that's all that matters. callable(object) -> bool Return whether the object is callable (i.e., some kind of function). :) ChrisA