[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Org Babel says 1 + 1 in Python is None
From: |
Ihor Radchenko |
Subject: |
Re: Org Babel says 1 + 1 in Python is None |
Date: |
Mon, 21 Oct 2024 18:03:00 +0000 |
Jack Kamm <jackkamm@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>