size of an array..

Barry Kelly barry.j.kelly at gmail.com
Sun Jul 2 01:22:11 EDT 2006


"bruce" <bedouglas at earthlink.net> wrote:

> from the "for label in d.xpath", i assume that "d.xpath" is returning
> multiple strings/objects/etc... and that label is assigned to the next
> "element during the loop.
> 
> is there a way to determine the number of elements in "l", or the number of
> iterations for the "for loop" prior to running it...
> 
> the tutorials i've seen as of yet haven't mentioned this..

Have you tried len(object)?

-- Barry

-- 
http://barrkel.blogspot.com/



More information about the Python-list mailing list