Jack Kamm <jackk...@gmail.com> writes: > This patch fixes several related issues with python blocks with > parameters ":session :results value", including: > > - Broken if-else and try-except statements. > - Correctly parsing blank lines in indented blocks. > - Returning the correct value when the underscore "_" variable > has been assigned. > [...] > There is some useful background and discussion of the issues here: > > https://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00274.html > > In that thread from 2017, we solved similar problems for the ":results > output" case. With this patch, I'm now circling back to try and fix the > ":results value" case.
Thanks! I'll plan to take a deeper look within the next week. However, given that I'm not an ob-python user (or a much of a babel user in general), I hope those who are will try out your patch and give feedback.