#30437: Why urlpatterns has to be a *Python list*? -------------------------------+-------------------------------------- Reporter: isidentical | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 2.2 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Description changed by isidentical:
Old description: > Why urlpatterns has to be a *Python list*? Doesn't all sequences (an > object that implements collections.abc.Sequence interface) counts for > that. IMO this description should change at url dispatching page. As a > real example i'm using collections.UserList based pattern manager for it > (can be found in [that > page](https://github.com/isidentical/Aspava/blob/f7d7953090574e30f45d300ab1d06b46b0e18142/social/urls.py#L5).) New description: Why urlpatterns has to be a *Python list*? Doesn't all sequences (an object that implements collections.abc.Sequence interface) counts for that. IMO this description should change at url dispatching page. As a real example i'm using collections.UserList based pattern manager for it (can be found in [https://github.com/isidentical/Aspava/blob/f7d7953090574e30f45d300ab1d06b46b0e18142/social/urls.py#L5 here]) -- -- Ticket URL: <https://code.djangoproject.com/ticket/30437#comment:1> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.62cae974abc22ce7c88f9ba8aeb2d166%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.