'complex' function with string argument.

wxjmfauth at gmail.com wxjmfauth at gmail.com
Wed Mar 19 10:52:56 CET 2014


Le mercredi 19 mars 2014 09:51:20 UTC+1, Marko Rauhamaa a écrit :
> wxjmfauth at gmail.com:
> 
> 
> 
> > This is, in my mind, more questionable:
> 
> >
> 
> >>>> complex(2, 1+1j)
> 
> > (1+1j)
> 
> 
> 
> I find it neat, actually.
> 
> 
> 
> 
> 
> Marko

>>> # tricky: yes, neat: no
>>> complex(1+1j, 2)
(1+3j)
>>>



More information about the Python-list mailing list