Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Strange range Date: Fri, 01 Apr 2016 10:42:09 -0400 Lines: 8 Message-ID: References: <87y48xjwqq.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de BkzqwjULBDMzcRboaLa2MQbvO1bE+639zI4VOB01xRVQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'collections': 0.09; 'implies': 0.09; 'received:internal': 0.09; 'iterator': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'objection': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'sense,': 0.16; 'statement.': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'fri,': 0.27; 'objects': 0.29; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'method': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'header:Message- Id:1': 0.61; 'applying': 0.70 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=6KnptIZYu+PoFhm9kNRSOE9TctE=; b=Npet/l ouLvNg2FWaGxp0T/pffDkJzYoSU/6vth7ZPpAx70Cv3AEwdTwVuu6MiHOCbSY56n xRzBRsk2gQGFVgQV36/SV/N/OPLaZ0chHCZeUx8HhSg0LbJ9MDEEvlFB9KqbHucI Nl/tW3UgEdB/BV/hSovv/Ef3w1mXNTY6NqCZk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=6KnptIZYu+PoFhm 9kNRSOE9TctE=; b=HXby2sdDnBd4HIjP5NsBtv0DO5Tr4VH8hmzmSeWrEmXqf4z 0jSYYtBvv1pMX3tcwE8DevoNmVfulFmOad2H23FKTglQYXf29bkbp+t47MIyjTlU e7ofwmk2Hn8fRxCSO1HFgrMLxdW05jJ7pJG0JqWHWXd634w9+6eOs+SQtLGA= X-Sasl-Enc: eaWKpJmLNuYlJJRGdAGZmvr3Rwf1IO0Lij3Jq9oTz1ZV 1459521729 X-Mailer: MessagingEngine.com Webmail Interface - ajax-2373d6a1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:106232 On Fri, Apr 1, 2016, at 09:24, Chris Angelico wrote: > It is an iterable. It is not a factory, as that implies that you call > it. I do have an objection to this statement. It's perfectly reasonable to describe the factory pattern as applying to objects on which you call a method to return the new object you are interested in. In this sense, all collections are iterator factories.