> > >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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4