On Tue, Dec 6, 2011 at 8:46 PM, Ian Clelland <[email protected]> wrote:
>
>> * compiler.py still had a map(None) call, that I replaced with
>> izip_longest.
>
>>
>> The biggest change was just adding izip_longest to utils.py3 and
>> utils.itercompat.
>
>
> I had the same issue with MySQL -- I used a block like this:
>
> try:
>    from itertools import zip_longest
> except ImportError:
>    # python 2.x
>    from itertools import izip_longest as zip_longest
>
> The code doesn't really seem to mind; iterator or generator, so I didn't
> think it was worth making an exact compatibility function

itertools.izip_longest was added in Python 2.6, though, so a
compatibility function is needed for Python 2.5.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to