This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 mark.dickinson
收信人 amaury.forgeotdarc, belopolsky, jribbens, mark.dickinson, vstinner, webograph
日期 2008-11-15.10:08:07
SpamBayes Score 6.0996337e-07
Marked as misclassified
Message-id <1226743688.74.0.0948911170249.issue2706@psf.upfronthosting.co.za>
In-reply-to
内容
> 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.
历史
日期 用户 动作 参数
2008-11-15 10:08:09mark.dickinson修改recipients: + mark.dickinson, jribbens, amaury.forgeotdarc, belopolsky, vstinner, webograph
2008-11-15 10:08:08mark.dickinson修改messageid: <1226743688.74.0.0948911170249.issue2706@psf.upfronthosting.co.za>
2008-11-15 10:08:07mark.dickinson链接issue2706 messages
2008-11-15 10:08:07mark.dickinson创建