On Sep 7, 4:38 pm, Benjamin Kaplan <benjamin.kap...@case.edu> wrote:

> When you're using a language, you should use the style that the
> language emphasizes.

You mean like this?

  uri = reverse('my_uri_name', kwargs=dict(pk=record.pk))

That 'kwargs' there is ... a lapse of judgement. It is exposing a
technical detail (the "keyword arguments") instead of naming the
variable after its intent. It should be 'params=', at least, to match
the URI standards.

I'm just sayin'...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to