On Friday 07 April 2006 18:43, Armin Rigo wrote:
Hi Stephan,
On Fri, Apr 07, 2006 at 06:16:39PM +0200, Stephan Diehl wrote:
space.newseqiter.
This is only for iterating over sequences, just like W_SeqIterObject.
Or is the dictobject way the preferred one? There we have special iterator object 'W_DictIter_Keys', for example.
Yes, you need a special iterator class like W_DictIter_Keys.
o.k.
BTW, W_SetObject.data, which is an r_dict, should ideally have 'None' as keys instead of space.w_True. This would make the low-level translated code more memory-efficient, by using 'void' values instead of pointers to space.w_True.
ahh, good point, I'll change that then (the other stuff, we talked about last week, is already changed, but not checked in) Thanks Stephan
A bientot,
Armin.