[Python-Dev] Re: More informative error messages
Kevin J. Butler
python-kbutler at sabaydi.com
Wed Oct 8 11:34:54 EDT 2003
More information about the Python-Dev mailing list
Wed Oct 8 11:34:54 EDT 2003
- Previous message: [Python-Dev] RE: More informative error messages
- Next message: [Python-Dev] obj.__contains__() returns 1/0...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > >From: Nick Coghlan <ncoghlan at iinet.net.au>= > > Given this, perhaps a simple addition to the error string might be > enough to > >help reduce confusion: > > Agreed. >------------- >TypeError: foo() takes exactly 1 argument (2 given). (Note: For bound methods, >the argument count includes the object the method is bound to) >------------- > > Agreed, but then the newbies will wonder what bounds methods are, and to what a method would be bound. Shorter and easier for the uninitiated: TypeError: foo() takes exactly 1 argument (2 given). Counts may include 'self'. kb
- Previous message: [Python-Dev] RE: More informative error messages
- Next message: [Python-Dev] obj.__contains__() returns 1/0...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list