May 16, 2020
8 a.m.
Mark Dickinson <dickinsm@gmail.com> added the comment: `pair` isn't a reserved word here; it's just the formal parameter name. Think of the lambda here as being equivalent to a function def second(pair): return pair[1] You can replace the word "pair" here with any other valid Python identifier, and it'll still work the same way. ---------- nosy: +mark.dickinson _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40641> _______________________________________