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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c01e25d9f6b33bf7be5d4ae6b6443419761d9ba;p=thirdparty%2FPython%2Fcpython.git Note the tighter complex() parameter checking. --- diff --git a/Misc/NEWS b/Misc/NEWS index ecc2cfdfe568..903ff378d0c1 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.