Christophe wrote: >> So, putting them together, you could expect >> eval(repr(a)) >> to reproduce a, and in fact it does so. > > Says who ? > > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> repr(1+3j) > '(1+3j)' > >>> complex(repr(1+3j)) > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ValueError: complex() arg is a malformed string > >>>
in what language is "eval" spelled "complex" ? </F> -- http://mail.python.org/mailman/listinfo/python-list