#33351: path()/re_path() should raise a TypeError when kwargs is not a dict.
-------------------------------------+-------------------------------------
     Reporter:  Keryn Knight         |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Core (URLs)          |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  path _path           |             Triage Stage:  Accepted
  URLPattern check                   |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * type:  New feature => Cleanup/optimization
 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 > Well, they actually continue to suggest to me that everything after the
 view argument should be keyword-only, or that kwargs should come later,
 but I suspect those to be a harder sell ;)

 Keyword-only arguments would be great, but it will affect too many users.
 We reject such tickets in most of cases, however here it's justified
 because `kwargs` as a positional argument can be confusing, so let's raise
 a `TypeError` when `kwargs` is not a dict.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33351#comment:3>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.0d80ba5b04821397c028571e9446675c%40djangoproject.com.

Reply via email to