The Samurai Principle
Phlip
phlip2005 at gmail.com
Tue Sep 7 23:44:14 EDT 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
mailing list