Opened 6 years ago
Last modified 6 years ago
#30437 closed Cleanup/optimization
Why urlpatterns has to be a *Python list*? — at Initial Version
Reported by: | Batuhan Taşkaya | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
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).)
Note:
See TracTickets
for help on using tickets.