emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] org-babel-script-escape mishandled empty python list


From: Jonas Bernoulli
Subject: [BUG] org-babel-script-escape mishandled empty python list
Date: Wed, 12 Oct 2022 12:43:42 +0200

`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 >=.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]