On Sun, Jan 23, 2011 at 20:40, Kevin Xiao <kevin.xia...@gmail.com> wrote: > Hi, > > I am stuck while look into source code of Django's lazy decorator. At > line 205 of functinal.py, there is: > > def __unicode_cast(self): > return self.__func(*self.__args, **self.__kw) > > def __str_cast(self): > return str(self.__func(*self.__args, **self.__kw)) > > Why doesn't __unicode_cast function need to call *unicode* on > *self.__func(...)* like what __str_cast does,call *str* function? > > Any help is appreciated.
Kevin, Almost 100% certain that this question will be answered quicker on the django-dev list: email: django-develop...@googlegroups.com web: http://groups.google.com/group/django-developers?hl=en cheers L. -- Crunchiness is the gustatory sensation of muffled grinding of a foodstuff. Crunchiness differs from crispiness in that a crispy item is quickly atomized, while a crunchy one offers sustained, granular resistance to jaw action. While crispiness is difficult to maintain, crunchiness is difficult to overcome. from The Best of Wikipedia http://bestofwikipedia.tumblr.com/ -- 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.