Message75908
| Author |
mark.dickinson |
| Recipients |
amaury.forgeotdarc, belopolsky, jribbens, mark.dickinson, vstinner, webograph |
| Date |
2008年11月15日.10:08:07 |
| SpamBayes Score |
6.0996337e-07 |
| Marked as misclassified |
No |
| Message-id |
<1226743688.74.0.0948911170249.issue2706@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> timedelta / <float or int> should be disallowed in true division mode.
I don't understand this; why should the division mode affect
division operations involving timedeltas at all? The meaning
of "/" is unaffected by the division mode for float/float or
float/int; why should timedeltas be any different?
I vote +1 for timedelta/timedelta and timedelta/float (regardless
of division mode). timedelta / timedelta is the one obvious way
to find out 'how many A's in B', and the one that it's natural
to try first, before looking for (timedelta -> float) conversion
methods. |
|