[IronPython] Bug in Django's lazy functions

Curt Hagenlocher curt at hagenlocher.org
Tue Dec 30 18:02:57 CET 2008


On Mon, Dec 29, 2008 at 11:35 AM, Jeff Hardy <jdhardy at gmail.com> wrote:

> On Mon, Dec 29, 2008 at 9:43 AM, Curt Hagenlocher <curt at hagenlocher.org>
> wrote:
>
> > There may also be a problem as a result of str == unicode; in fact,
> there's
> > a commented-out assertion in line 175 of functional.py that specifically
> > breaks because this is true.
>
> functional.py isn't *exactly* the same as Django's - I commented that
> line out. It does actually have a purpose when str != unicode. There's
> code that hits CP #20366 as well.


If nothing else, the code should at least be rearranged to put the tests for
unicode and str in the same order in every place they appear.

--
Curt Hagenlocher
curt at hagenlocher.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081230/82cff4c3/attachment.html>


More information about the Ironpython-users mailing list