On Thu, 16 Jul 2020 at 19:09, Richard Damon <[email protected]> wrote:
> One question that comes to mind, does match NEED a colon at the end of it? If
> it didn’t have the colon, it wouldn’t need the indent for the following lines.
Or something like
match t case ("rect", real, imag):
return complex(real, imag)
case ("polar", r, phi):
return complex(r * cos(phi), r * sin(phi))
else:
pass
--
Kind regards,
Stefano Borini
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/G6HNAS4TMH6DY6QTAYXUZJK5GIRI3MC5/
Code of Conduct: http://python.org/psf/codeofconduct/