On Thu, 16 Jul 2020 at 19:09, Richard Damon <rich...@damon-family.org> 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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/G6HNAS4TMH6DY6QTAYXUZJK5GIRI3MC5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to