title: question related to reverse function and kwargs
body: <p>To reverse lookup an url by means of name or View_name we will use reverse function in the views like below</p>
  
  <pre><code>reverse("calendarviewurl2", kwargs={"year":theyear,"month":themonth})
  </code></pre>
  
  <p>and reverse function signature is as follows </p>
  
  <p><a href="http://code.djangoproject.com/browser/django/trunk/django/core/urlresolvers.py" rel="noreferrer">http://code.djangoproject.com/browser/django/trunk/django/core/urlresolvers.py</a></p>
  
  <pre><code>def reverse(self, lookup_view, *args, **kwargs)
  </code></pre>
  
  <p>My question is related to kwargs  </p>
  
  <p>when we want to send a dictionary as keyword arguments we should use the below syntax
   <strong><em>snippet 1</em></strong></p>
  
  <pre><code> kwargs={"year":2009,"month":9}
     reverse("name",**kwargs)
  </code></pre>
  
  <p>as opposed to below code<br>
  <strong><em>snippet 2</em></strong></p>
  
  <pre><code>  reverse("name",kwargs={"year":2009,"month":9})
  </code></pre>
  
  <p>So my question  is  </p>
  
  <ol>
  <li>Do the snippet1 and snippet2 are
  same? ( i feel they are not same)</li>
  <li>In case of reverse function only
  snippet 2 is working where as
  snippet 1 is not properly working.Why is it so? (Even though the proper way to send a dictionary is by using syntax mentioned in snippet1.)</li>
  </ol>