'complex' function with string argument.

Ian Kelly ian.g.kelly at gmail.com
Wed Mar 19 19:45:06 CET 2014


On Wed, Mar 19, 2014 at 5:04 AM, Skip Montanaro <skip at pobox.com> wrote:
> On Wed, Mar 19, 2014 at 5:33 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> When is it ever useful though?
>
> About as often as int(0), float(0), or float(0.0) which all work as
> expected, though probably don't turn up in a lot of code.

The analogous call to those is complex(1+2j), which I have no problem
with, not complex(1+2j, 3+4j).



More information about the Python-list mailing list