isintance bug with Python 2.4.4 | django.core.urlresolvers.RegexURLResolver affected
|Reported by:||pavl||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Inside "django.core.urlresolvers.RegexURLResolver" at line:
def _populate(self): ... if isinstance(pattern, RegexURLResolver)
The method isinstance, under Python 2.4.4, does not work properly.
I got the exception: 'RegexURLResolver' object has no attribute 'name' at line:
else: ... lookups.appendlist(pattern.name, (bits, p_pattern))
where a pattern was:
pattern <RegexURLResolver oteracapital.apps.localeflatpages.urls (None:None) >
Which means that if isinstance(pattern, RegexURLResolver) returned False in that case.
In my opinion you should force the installation of latest Python 2.x to avoid such problem.