Message120372
| Author |
rhettinger |
| Recipients |
brett.cannon, ezio.melotti, michael.foord, pitrou, r.david.murray, rhettinger |
| Date |
2010年11月04日.02:23:59 |
| SpamBayes Score |
1.0195189e-06 |
| Marked as misclassified |
No |
| Message-id |
<1288837443.84.0.483600638143.issue10273@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> assertLess, on the other hand, I often get wrong,
> since it is *not* __lt__ spelled out.
Right. Even Michael gets that one wrong.
Meditate on why Guido created the special method __lt__ instead of __less_than__.
Regardless of why Guido made that choice, we do already have a standard way to spell less-than in Python, and it would be good to stick with it. |
|