#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 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------+-------------------------------------- Comment (by pavl):
Just to be clear here, I wasn't saying that the bug came from Python itself but from Django. I am sorry if there was a misunderstood. On DEV, with Python 2.6.5, I got no error what so ever. On production server, with Python 2.4.4, I get the error. The test below fails to see that 'pattern' is a RegexURLResolver object: {{{ if isinstance(pattern, RegexURLResolver) }}} where pattern is: {{{ pattern <RegexURLResolver oteracapital.apps.localeflatpages.urls (None:None) > }}} I have this exception when I use the resolver function inside a view with a pattern like: 'namespace:name'. I will upload the code tomorrow for more details. -- Ticket URL: <http://code.djangoproject.com/ticket/13446#comment:2> 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.