Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28707
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Defining features in a list |
| Date | 2012-09-07 15:29 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <e7c07576-677f-4230-9abc-34693e68fa7b@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.368.1347046212.27098.python-list@python.org> (permalink) |
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