Message120372
> 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. |
|
Date |
User |
Action |
Args |
2010-11-04 02:24:03 | rhettinger | set | recipients:
+ rhettinger, brett.cannon, pitrou, ezio.melotti, r.david.murray, michael.foord |
2010-11-04 02:24:03 | rhettinger | set | messageid: <1288837443.84.0.483600638143.issue10273@psf.upfronthosting.co.za> |
2010-11-04 02:23:59 | rhettinger | link | issue10273 messages |
2010-11-04 02:23:59 | rhettinger | create | |
|