3 ms·
Python doesn't have language support for the idiom -- trying to evaluate lambda _, _: None gives SyntaxError: duplicate argument '_' in function definition
by MBlume 13y ago
Python doesn't have language support for the idiom -- trying to evaluate
lambda _, _: None
gives
SyntaxError: duplicate argument '_' in function definition
but tools like pylint will silence unused-variable warnings if the variable starts with '_'.
- agumonkey 13y agoThanks for the verification. But even a bit of syntactic convention won't be enough if python create a unnecessary binding.