On Friday 10 March 2006 02:19, Mike Kent wrote: > So, am I completely off base here? Is what I want to do not > possible, or is there another way I can tackle this?
This could be considered as a bug in the 'for' tag in that it does a len() when it perhaps doesn't need to. If you try to patch it to remove len() then the following will be unavailable: - reversed mode - 'revcounter' variable - 'revcounter0' variable - 'last' variable However, I don't see those as a big obstacle, provided it was documented that if the collection had no __len__ method then you wouldn't have those options/variables. Luke -- "Underachievement: The tallest blade of grass is the first to be cut by the lawnmower." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---