On 22/11/20 1:07 pm, Henk-Jaap Wagenaar wrote:
On 2020年11月21日 at 19:58, Glenn Linderman <[email protected] <mailto:v%[email protected]>> wrote:Don't () already indicate an expression to be evaluated? Does it? [(a, b)] = [(0, 1)]
Presumably a comma would be needed to match a 1-tuple. case (x): # matches the value of x case (x,): # matches any 1-tuple and binds x -- Greg _______________________________________________ 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/4T3OFJEIGMZEW5QJ3WXFAICK6LZD3P5Y/ Code of Conduct: http://python.org/psf/codeofconduct/