27 Jan
2008
27 Jan
'08
midnight
On Jan 26, 2008 2:46 PM, Raymond Hettinger
[Christian Heimes]
In my opinion float(complex) does do the most sensible thing. It fails and points the user to abs().
Right.
To elaborate the point I was trying to make: If float() does not mean "the float part of" and should not take a complex argument (which I completely agree with), then int() does not mean "the int part of" and should not take a float argument. Even assuming that's correct, I'm not certain that it's worth breaking (well, deprecating) backwards compatibility to achieve a more consistent set of functions in this case. I think it is, but I'm happy to leave that point up to the rest of the list (which does seem to be leaning against it). -- Namasté, Jeffrey Yasskin