Not quite - casting to a list with values() and itervalues() gives the
expected number. But, when run in the code in context of building the
mapping (even with the suggestion to change the mode to 'nr') looping
with itervalues() doesn't make it all the way through. I'll be out
this morning/afternoon, but this evening I'll work up a more detailed
example...getting the data will be difficult, because first it's not
my data, and second its in a mysql database. Thanks again!

On Jun 13, 7:34 pm, Christopher Lee <l...@chem.ucla.edu> wrote:
> On Jun 13, 2009, at 7:28 PM, Kenny Daily wrote:
>
>
>
> > They are equal! itervalues gives me back the expected number of
> > records...I tried running my loop isolated from other code, and I
> > still get the discrepancy though...
>
> Let me see if I've understood:
>
> len(annotdb.sliceDB.items()) == len(list(annotdb.sliceDB.iteritems()))
>
> i.e. both of them equal the correct value that you expected (170000)?
>
> And also len(annotdb.values()) == 170000
>
> But len(list(annotdb.itervalues())) is around 7000?
>
> -- Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to 
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to