#2265: [patch] Field's choices can be "used" only once if its a generator or an iterator. ----------------------------+----------------------------------------------- Reporter: Alex Dedul | Owner: adrian Type: defect | Status: new Priority: normal | Milestone: Component: Core framework | Version: Severity: normal | Resolution: Keywords: | ----------------------------+----------------------------------------------- Comment (by Alex Dedul):
As it turns out there is already implementation of tee() for python 2.3 http://www.python.org/doc/2.3.5/lib/itertools-example.html . Attached another version of patch based on that code. -- Ticket URL: <http://code.djangoproject.com/ticket/2265> Django <http://code.djangoproject.org/> The web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@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-updates -~----------~----~----~----~------~----~------~--~---