Re:"Real" anonymous functions for Python
by uberman on Sunday March 31, 2024 @02:16PM
(#39886604)
Can you set a breakpoint inside a lambda function without resorting to using multi line trickery using braces that essentially does what people say lambdas should not do?
[ Parent
| on HN ]
Not the OP, but I program professionally in Python for the past 5 years and i have never set a breakpoint. Assuming they don't work in lambdas (sounds like a tooling issue), is this really such a big problem?
Re:"Real" anonymous functions for Python
by constantcrying on Sunday March 31, 2024 @02:36PM
(#39886783)
>Not the OP, but I program professionally in Python for the past 5 years and i have never set a breakpoint.
This means you are either one of the best or one of the worst programmers. People in the middle have bugs in their program and can use a debugger to find them.
>sounds like a tooling issue
The tool, in this case, being the interpreter. Which is exactly the point.
Depending on what you're doing this can be really annoying.
Re:"Real" anonymous functions for Python
by wodenokoto on Monday April 01, 2024 @07:06AM
(#39892802)
No, but I also can’t set one in the middle of a chain of methods.
In Python it’s quite common to have to refactor in order to debug.