Message64767
| Author | belopolsky |
|---|---|
| Recipients | belopolsky, rhettinger |
| Date | 2008-03-30.22:23:33 |
| SpamBayes Score | 0.0021034158 |
| Marked as misclassified | No |
| Message-id | <1206915815.51.0.55915619351.issue2516@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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) TypeError: f() takes exactly 1 argument (3 given) """ I would suggest that this misreporting may be dear to old-beards reminding the time when there was not as much difference between methods and functions as there is now. It does not seem to be that hard to change the diagnostic to >>> a.f(1, 2) TypeError: f() takes no arguments (2 given) but the novice users would much rather see "a.f() takes no arguments (2 given)." The later is unfortunately not possible. Raymond, what would you say to "<class 'A' instance>.f() takes no arguments (2 given)" diagnostic? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-03-30 22:23:35 | belopolsky | set | spambayes_score: 0.00210342 -> 0.0021034158 recipients: + belopolsky, rhettinger |
| 2008-03-30 22:23:35 | belopolsky | set | spambayes_score: 0.00210342 -> 0.00210342 messageid: <1206915815.51.0.55915619351.issue2516@psf.upfronthosting.co.za> |
| 2008-03-30 22:23:34 | belopolsky | link | issue2516 messages |
| 2008-03-30 22:23:33 | belopolsky | create | |