[issue2516] Instance methods are misreporting the number of arguments

gungor report at bugs.python.org
Fri Aug 21 15:31:06 CEST 2009


gungor <gungorbasa at gmail.com> added the comment:

TypeError at /admin/rt/randevu/add/

cagir() takes exactly 1 argument (2 given)

 Request Method: GET  Request URL:
http://127.0.0.1:8000/admin/rt/randevu/add/  Exception Type: TypeError
 Exception
Value:

cagir() takes exactly 1 argument (2 given)

 Exception Location: /home/gungor/rts/../rts/rt/models.py in __init__, line
27  Python Executable: /usr/bin/python  Python Version: 2.6.2  Python
Path: ['/home/gungor/rts',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/var/lib/python-support/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/var/lib/python-support/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages']  Server time: Fri, 21 Aug 2009
07:24:43 -0500
2009/8/21 Benjamin Peterson <report at bugs.python.org>

>
> Changes by Benjamin Peterson <benjamin at python.org>:
>
>
> ----------
> type: compile error -> feature request
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue2516>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file14758/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2516>
_______________________________________
-------------- next part --------------
<span class="gI"></span><br><h1>TypeError at /admin/rt/randevu/add/</h1>
  <pre class="exception_value">cagir() takes exactly 1 argument (2 given)</pre>
  
    <table class="meta"><tbody><tr>
      <th>Request Method:</th>
      <td>GET</td>
    </tr>
    <tr>
      <th>Request URL:</th>
      <td><a href="http://127.0.0.1:8000/admin/rt/randevu/add/">http://127.0.0.1:8000/admin/rt/randevu/add/</a></td>
    </tr>
    <tr>
      <th>Exception Type:</th>
      <td>TypeError</td>
    </tr>
    <tr>
      <th>Exception Value:</th>
      <td><pre>cagir() takes exactly 1 argument (2 given)</pre></td>
    </tr>
    <tr>
      <th>Exception Location:</th>
      <td>/home/gungor/rts/../rts/rt/models.py in __init__, line 27</td>
    </tr>
    <tr>
      <th>Python Executable:</th>
      <td>/usr/bin/python</td>
    </tr>
    <tr>
      <th>Python Version:</th>
      <td>2.6.2</td>
    </tr>
    <tr>
      <th>Python Path:</th>
      <td>[&#39;/home/gungor/rts&#39;,
&#39;/usr/lib/python2.6&#39;, &#39;/usr/lib/python2.6/plat-linux2&#39;,
&#39;/usr/lib/python2.6/lib-tk&#39;, &#39;/usr/lib/python2.6/lib-old&#39;,
&#39;/usr/lib/python2.6/lib-dynload&#39;, &#39;/usr/lib/python2.6/dist-packages&#39;,
&#39;/usr/lib/python2.6/dist-packages/PIL&#39;,
&#39;/usr/lib/python2.6/dist-packages/gst-0.10&#39;,
&#39;/var/lib/python-support/python2.6&#39;,
&#39;/usr/lib/python2.6/dist-packages/gtk-2.0&#39;,
&#39;/var/lib/python-support/python2.6/gtk-2.0&#39;,
&#39;/usr/local/lib/python2.6/dist-packages&#39;]</td>
    </tr>
    <tr>
      <th>Server time:</th>
      <td>Fri, 21 Aug 2009 07:24:43 -0500</td></tr></tbody></table><br><div class="gmail_quote">2009/8/21 Benjamin Peterson <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Changes by Benjamin Peterson &lt;<a href="mailto:benjamin at python.org">benjamin at python.org</a>&gt;:<br>
<br>
<br>
----------<br>
type: compile error -&gt; feature request<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue2516" target="_blank">http://bugs.python.org/issue2516</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br><br clear="all"><br>


More information about the Python-bugs-list mailing list