Jack Kamm <jackk...@gmail.com> writes:

> Well, ob-python sessions implement this sort of parser in
> `org-babel-python-format-session-value', which AFAIK is robust.

Interesting. I did not remember this.

> I think it would be feasible to switch non-session blocks to use this
> parser, which IMO is nicer behavior -- the "return" statements always
> felt weird to me.
>
> But a major reason not to do it is to avoid breaking compatibility. Lots
> of old ob-python nonsession blocks with "return" statements out there.

May we detect if there is a return statement?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to