The Samurai Principle
phlip2005 at gmail.com
Wed Sep 8 05:44:14 CEST 2010
On Sep 7, 4:38 pm, Benjamin Kaplan <benjamin.kap... at 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'...
More information about the Python-list