all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] org-babel-script-escape mishandled empty python list
@ 2022-10-12 10:43 Jonas Bernoulli
  2022-10-12 11:49 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Bernoulli @ 2022-10-12 10:43 UTC (permalink / raw)
  To: emacs-orgmode


`org-babel-script-escape' doesn't handle an empty python list
correctly; ['a'] => ("a") but [] => [].

#+name: addheader
#+header: :var rows=""
#+begin_src python
  return []
#+end_src

#+header: :post addheader(*this*)
#+begin_src emacs-lisp :results table
  nil
#+end_src
#+RESULTS:
: []

An empty python list is turned into an empty lisp vector instead of
an empty lisp list.  At least for python, (> (length str) 2) should
probably be changed to use >=.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-12 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12 10:43 [BUG] org-babel-script-escape mishandled empty python list Jonas Bernoulli
2022-10-12 11:49 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.