Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28707
| 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 | <python-python-list@m.gmane.org> |
| 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 <wlfraed@ix.netcom.com> |
| Subject | Re: Defining features in a list |
| Date | Fri, 07 Sep 2012 15:29:59 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <e7c07576-677f-4230-9abc-34693e68fa7b@googlegroups.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.368.1347046212.27098.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Fri, 7 Sep 2012 06:42:20 -0700 (PDT), M Whitman <mgwhitman@gmail.com>
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/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Defining features in a list M Whitman <mgwhitman@gmail.com> - 2012-09-07 06:42 -0700
Re: Defining features in a list Dave Angel <d@davea.name> - 2012-09-07 10:35 -0400
Re: Defining features in a list M Whitman <mgwhitman@gmail.com> - 2012-09-07 08:21 -0700
Re: Defining features in a list Dave Angel <d@davea.name> - 2012-09-07 11:55 -0400
Re: Defining features in a list Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-09-07 17:47 +0200
Re: Defining features in a list Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-07 15:29 -0400
csiph-web