]> granicus.if.org Git - python/commitdiff
Note the tighter complex() parameter checking.
authorFred Drake <fdrake@acm.org>
Fri, 14 Dec 2001 17:08:12 +0000 (17:08 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 14 Dec 2001 17:08:12 +0000 (17:08 +0000)
Misc/NEWS

index ecc2cfdfe5683e77a179ee3bd5a7dd77544ce840..903ff378d0c1359214a5c0b044523161c6206b1b 100644 (file)
--- 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.