complex() bug or feature?
Skip Montanaro
montanaro at tttech.com
Thu Nov 8 09:23:58 EST 2001
Steve> Well the documentation should really make it clear that the
Steve> single string argument case is completely different from
Steve> the single numeric argument case. The former uses an
Steve> implied zero as the imaginary component, whereas the latter
Steve> extracts the imaginary component from the string.
Steve> And yes, the implementation *should* raise an exception
Steve> with a string first argument and any second argument. But
Steve> the docs could use clarification.
I've got a patch for the code I need to test and will generate a patch
for the doc, then submit both later today. I suspect this will make
it into 2.2.
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list