Message147977
Fwiw, a class with methods __long__ and __float__ but no method __int__ behaves strangely in many other places; the canonical example is that calling "int(Foo(42))" will not work. In light of this, does it make sense for "'%d' % Foo(42)" to work? Shouldn't the fix instead be to cleanly raise the TypeError instead? |
|
Date |
User |
Action |
Args |
2011-11-20 09:13:38 | arigo | set | recipients:
+ arigo, ronaldoussoren, amaury.forgeotdarc, mark.dickinson, eric.smith, ezio.melotti, flox, jayanth |
2011-11-20 09:13:38 | arigo | set | messageid: <1321780418.35.0.778470277686.issue13410@psf.upfronthosting.co.za> |
2011-11-20 09:13:37 | arigo | link | issue13410 messages |
2011-11-20 09:13:37 | arigo | create | |
|