On Mon, Mar 30, 2009 at 1:42 AM, Rob Hudson <treborhud...@gmail.com> wrote: > > Wow, that was a tricky one to track down... ... > I take it that gets interpreted as a single value tuple. D'oh! That
It does, operator precedence notwithstanding (for example, a lambda expression returning a tuple that is being used as an argument to a function may not interpret an unbracketed tuple, but as a second function argument) > What's interesting to me, is that the file path got converted > correctly in the debug output but not in the template loader itself. That's an edge case of string variable expansion: print "Hello %s world" % foo and: print "Hello %s world" % (foo,) give the same result. However, this flexibility isn't automatically extended to any other usage of a single value tuple - the code needs to explicitly allow tuples for input. The template loader doesn't. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---