#13446: isintance bug with Python 2.4.4 | 
django.core.urlresolvers.RegexURLResolver
affected
----------------------------+-----------------------------------------------
 Reporter:  pavl            |       Owner:  nobody    
   Status:  new             |   Milestone:            
Component:  Core framework  |     Version:  1.1       
 Keywords:                  |       Stage:  Unreviewed
Has_patch:  0               |  
----------------------------+-----------------------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13446>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

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

Reply via email to