Document that urlpatterns can be a sequence object.
    
    
    
      
      
      
        
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 here)
       
     
   
 
      
        
        
          Change History
          (8)
        
          
  
  
  
    
      | Description: | 
      
        modified (diff)
       | 
    
  
 
           
          
  
  
  
    
      | Easy pickings: | 
      
        set
       | 
    
    
      | Summary: | 
      
        Why urlpatterns has to be a *Python list*? → Document that urlpatterns can be an iterable object.
       | 
    
    
      | Triage Stage: | 
      
        Unreviewed → Accepted
       | 
    
    
      | Type: | 
      
        Bug → Cleanup/optimization
       | 
    
    
      | Version: | 
      
        2.2 → master
       | 
    
  
 
           
          
  
  
  
    
      | Owner: | 
      
        changed from nobody to Jonatas CD
       | 
    
    
      | Status: | 
      
        new → assigned
       | 
    
  
 
           
          
          
          
  
  
  
    
      | Summary: | 
      
        Document that urlpatterns can be an iterable object. → Document that urlpatterns can be a sequence object.
       | 
    
  
 
           
          
  
  
  
    
      | Resolution: | 
      
        → fixed
       | 
    
    
      | Status: | 
      
        assigned → closed
       | 
    
  
 
           
          
          
         
       
     
        
    
    
Agreed, we can clarify this in syntax-of-the-urlpatterns-variable, e.g. "... should be an iterable (e.g. a list or tuple) of ..."