Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'subject:features': 0.09; 'library': 0.15; 'evaluates': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'string': 0.17; 'element': 0.17; 'header:X-Complaints-To:1': 0.28; 'subject:list': 0.28; 'manual': 0.29; 'fri,': 0.30; 'stuff': 0.30; 'url:home': 0.33; 'to:addr :python-list': 0.33; 'list': 0.35; 'whatever': 0.35; 'received:org': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'first': 0.61; 'side': 0.61; 'study': 0.66; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Defining features in a list Date: Fri, 07 Sep 2012 15:29:59 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-111-50.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347046212 news.xs4all.nl 6975 [2001:888:2000:d::a6]:56282 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28707 On Fri, 7 Sep 2012 06:42:20 -0700 (PDT), M Whitman declaimed the following in gmane.comp.python.general: > for fc in fclist: > fc=str(arcpy.GetCount_management(fc).getOutput(0)) This does not do what you think it does. fc first is bound to the first element of the list fclist Then, fc is bound to the string representation of whatever the stuff on the right side evaluates into.. I suspect you need to study the library reference manual on "dictionaries"... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/