> That's useful information... most of my motivation for iterChildren()
> was to be consistent with other python methods like iteritems(),
> iterkeys(), etc., so if that's going away then I'm less motivated to
> stick with it.  I haven't played with python3 so I didn't know that.
> See, I told you that you were atypical...

As far as I can tell, the pythonic thing to do these days is to not
ever return a list.  It's to always return some sort of iterator.  If
the user needs a list, then the user should do list(foo.children()) or
list(foo.items()).

  Nate
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to