[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Problem with python session
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Problem with python session |
Date: |
Sun, 09 Oct 2016 11:30:04 +0200 |
Hello,
William Henney <address@hidden> writes:
> I can reproduce your problem. This is (arguably) a bug in ob-python when
> using the vanilla python interpreter together with the :session argument.
> You can work around it by putting a blank line after the for-loop in your
> second code block.
>
> I say that it is arguable that this is a bug or not since you would have
> exactly the same error if you were to literally type your code block in at
> the python interactive prompt. That is, you have to give a second newline
> in order to close the loop and return to the top-level prompt. However, it
> is admittedly confusing to have different behavior with and without the
> ":session" argument.
Thank you for the analysis. Would you have a suggestion on how to
improve the situation?
Regards,
--
Nicolas Goaziou