Dan Schult
Dan Schult
```1 == True``` returns True but ```1 is True``` returns False. We use ```if x is True``` to check for a bool True value. This is useful when the argument...
```1 is True``` returns ```False``` as desired. I'm not sure what the trouble is.
Why would anyone do that? I don't think that's a confusion we've ever had reported. People don't seem to have that trouble. True/False are simple enough as they are. No...
I agree with both of you that there are many places we currently have ```if x is True:``` where we should have ```if x```. I suspect most (probably all) are...
If we have to stop asking for forgiveness to appease the type-checkers, then the type checkers need to advance sufficiently to handle "asking for forgiveness rather than permission". My understanding...
Check out #5736 which could be a function that solves this issue once we rename it as the primary function.
Your examples also bring up questions about what it means to be a lowest common ancestor when the graph is a DAG. With a tree, there is a unique LCA...
I agree that 1) LCA may have multiple solutions and so this algorithm finding one of them is a useful function. 2) adding a second function that returns **all** the...
I opened an issue requesting a function for all_lowest_common_ancestors. I think that means this one can be closed (with a pointer to it for those interested).
Actually, it was implemented and then removed. But that was close to 12 years ago before the git system was used so the comments describing why are harder to find....