emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Python source block weirdness #2
       [not found] <1686055329.5401063.1553975539952.ref@mail.yahoo.com>
@ 2019-03-30 19:52 ` Brad Knotwell
  0 siblings, 0 replies; only message in thread
From: Brad Knotwell @ 2019-03-30 19:52 UTC (permalink / raw)
  To: Org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-30 19:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1686055329.5401063.1553975539952.ref@mail.yahoo.com>
2019-03-30 19:52 ` Python source block weirdness #2 Brad Knotwell

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).