Sorry, Bastien At this moment, in ob-python.el you can see: (defun org-babel-python-var-to-python (var) "Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value." (if (listp var) (concat "[" (mapconcat #'org-babel-python-var-to-python var ", ") "]") (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S") (substring-no-properties var))))) But I understand that Daniel Gerber's proposal is (note the last line): (defun org-babel-python-var-to-python (var) "Convert an elisp value to a python variable. Convert an elisp value, VAR, into a string of python source code specifying a variable of the same value." (if (listp var) (concat "[" (mapconcat #'org-babel-python-var-to-python var ", ") "]") (if (equal var 'hline) org-babel-python-hline-to (format (if (and (stringp var) (string-match "[\n\r]" var)) "\"\"%S\"\"" "%S") (if (stringp var) (substring-no-properties var) var))))) And, related to the problem of the OP, this last code works for me. Miguel El Miércoles 22 de enero de 2014 15:23, Bastien escribió: Hi Miguel, Miguel Ruiz writes: > Could it be a poorly rewritten patch? Original Daniel Gerber's > proposal works for me. Can you tell what's wrong in the current version of ob-python.el from git repo?  Otherwise I'm not sure to understand. Thanks, -- Bastien