From: Brad Knotwell <bknotwell@yahoo.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Python source block weirdness #2
Date: Sat, 30 Mar 2019 19:52:19 +0000 (UTC) [thread overview]
Message-ID: <1686055329.5401063.1553975539952@mail.yahoo.com> (raw)
In-Reply-To: 1686055329.5401063.1553975539952.ref@mail.yahoo.com
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]
Good day all--
I've a similar problem that might hint at what's occurring. You can't use an else or elif block in a python src block (might be session-specific). Looking through the commits, I wonder if 1966d58b253d0077025589c736b9223010682e17
Had some unintended consequences.
Thx.
--Brad
#+NAME: works#+begin_src python :session broken :exports boths = True
if s == False: 'result = %d' % 3
if s == True: 'result = %d' % 4#+end_src
#+RESULTS: works
Will it work again?
#_NAME: sadness#+begin_src python :session broken2 :exports boths = True
if s == False: 'result = %d' % 3else: 'result = %d' % 4#+end_src
It shouldn't be empty:#+RESULTS: sadness
Output follows:
,----| s = True| | if s == False:| 'result = %d' % 3| | if s == True:| 'result = %d' % 4`----
,----| result = 4`----
Will it work again?
#_NAME: sadness,----| s = True| | if s == False:| 'result = %d' % 3| else:| 'result = %d' % 4`----
It shouldn't be empty:
[-- Attachment #2: Type: text/html, Size: 2201 bytes --]
parent reply other threads:[~2019-03-30 19:54 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1686055329.5401063.1553975539952.ref@mail.yahoo.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1686055329.5401063.1553975539952@mail.yahoo.com \
--to=bknotwell@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).