Fixed repr() and str() of complex numbers. Complex suffered from the same problem as floats but I forgot to test and fix them.
diff --git a/Misc/NEWS b/Misc/NEWS
index 134ac7e..c4d64ce 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@
 Core and builtins
 -----------------
 
+- Fixed repr() and str() of complex numbers with infinity or nan as real or
+  imaginary part.
+
 - Clear all free list during a gc.collect() of the highest generation in order
   to allow pymalloc to free more arenas. Python may give back memory to the
   OS earlier.