[issue2516] Instance methods are misreporting the number of arguments

2021-11-23 Thread Irit Katriel
Irit Katriel added the comment: This seems to have been fixed by now, on 3.11 I get this: >>> class A: ... def foo(self, x): pass ... >>> A().foo() Traceback (most recent call last): File "", line 1, in TypeError: A.foo() missing 1 required positional argument: 'x' -- nosy: +i

[issue2516] Instance methods are misreporting the number of arguments

2013-08-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue2516] Instance methods are misreporting the number of arguments

2012-12-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread R. David Murray
R. David Murray added the comment: I presume Benjamin meant he fixed the special case Alexander reported. -- ___ Python tracker ___ __

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Maybe I'm misunderstanding what issue we're talking about here, but wasn't this supposed to be fixed? giampa...@ubuntu:~/svn/python-3.2$ python3.2 Python 3.2a0 (py3k:82220M, Jun 25 2010, 21:38:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits"

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r82220. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a similar issue which may be easier to fix: >>> def f(a, b=None, *, c=None, d=None): ...pass >>> f(1,2,3) Traceback (most recent call last): File "", line 1, in TypeError: f() takes at most 4 arguments (3 given) Should be "f() takes at

[issue2516] Instance methods are misreporting the number of arguments

2010-06-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue2516] Instance methods are misreporting the number of arguments

2010-06-20 Thread R. David Murray
R. David Murray added the comment: All that is needed now is a working patch... :) -- nosy: +r.david.murray ___ Python tracker ___ ___

[issue2516] Instance methods are misreporting the number of arguments

2010-06-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The same subject on python-dev raised last month received positive feedbacks: http://mail.python.org/pipermail/python-dev/2010-May/100197.html -- nosy: +giampaolo.rodola ___ Python tracker

[issue2516] Instance methods are misreporting the number of arguments

2010-06-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: gungor: your messages look mangled. It may be the case of email to trucker bug. Can you briefly explain what you are trying to add to the discussion? -- assignee: -> belopolsky ___ Python tracker

[issue2516] Instance methods are misreporting the number of arguments

2010-06-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file14759/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2516] Instance methods are misreporting the number of arguments

2010-05-28 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread gungor
gungor added the comment: I don't understand your message.You only send me my error message's xml version 2009/8/21 Benjamin Peterson > > Changes by Benjamin Peterson : > > > Removed file: http://bugs.python.org/file14758/unnamed > > ___ > Python tracker >

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : Removed file: http://bugs.python.org/file14758/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread gungor
gungor 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:

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- type: compile error -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue2516] Instance methods are misreporting the number of arguments

2009-08-21 Thread gungor
gungor added the comment: I am using Django with python to develope a web application.While I am trying to syncronize and running the localserver, I get this issue(2516). problem function is cagri() Source Code: from django.db import models from datetime import datetime from sets import Immutabl

[issue2516] Instance methods are misreporting the number of arguments

2008-04-04 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: On Thu, Apr 3, 2008 at 9:39 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > It's definitely a bug What would you say to the following: def f(x): pass class X: xf = f x = X() x.xf(1,2) --> TypeError: f() takes exactly 1 ar

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: It's definitely a bug, but I think the reason it has been around so long is that no-one has offerred a clean solution. I was hoping for something along the lines of functions raising an ArgumentError (a new subclass of TypeError) that

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Guido, what's your opinion on this? Is this a bug, and should it be fixed? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ _

[issue2516] Instance methods are misreporting the number of arguments

2008-04-03 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: I am uploading another work in progress patch because the problem proved to be more difficult than I thought in the beginning. The new patch addresses two issues. 1. a.f(..) -> A.f(a, ..) transformation is performed is several places i

[issue2516] Instance methods are misreporting the number of arguments

2008-03-30 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: You have +1 from me to continue developing this patch. -- nosy: +benjamin.peterson priority: -> low __ Tracker <[EMAIL PROTECTED]> ___

[issue2516] Instance methods are misreporting the number of arguments

2008-03-30 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: Attached patch (issue2516poc.diff) presents proof-of-concept code which changes the problematic reporting as follows: >>> a.f(1,2) Traceback (most recent call last): File "", line 1, in TypeError: .f() takes exactly 0 arguments (2 g

[issue2516] Instance methods are misreporting the number of arguments

2008-03-30 Thread Ned Batchelder
Changes by Ned Batchelder <[EMAIL PROTECTED]>: -- nosy: +nedbat __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe

[issue2516] Instance methods are misreporting the number of arguments

2008-03-30 Thread Alexander Belopolsky
New submission from Alexander Belopolsky <[EMAIL PROTECTED]>: Opening a new issue per Raymond's request at msg64764: """ It would be *much* more useful to direct effort improving the mis- reporting of the number of arguments given versus those required for instance methods: >>> a.f(1, 2) Typ