From: Fred Drake Date: Fri, 14 Dec 2001 17:08:12 +0000 (+0000) Subject: Note the tighter complex() parameter checking. X-Git-Tag: v2.2.1c1~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c01e25d9f6b33bf7be5d4ae6b6443419761d9ba;p=python Note the tighter complex() parameter checking. --- diff --git a/Misc/NEWS b/Misc/NEWS index ecc2cfdfe5..903ff378d0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -50,6 +50,10 @@ Core and builtins division becomes the default (in the meantime, test_coercion is testing the current rules). +- complex() now only allows the first argument to be a string + argument, and raises TypeError if either the second arg is a string + or if the second arg is specified when the first is a string. + Extension modules - gc.get_referents was renamed to gc.get_referrers.