emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miguel Ruiz <rbenit68@yahoo.es>
To: Bastien <bzg@gnu.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: bug in 8.2.5f for using tables as data in python?
Date: Wed, 22 Jan 2014 15:58:53 +0000 (GMT)	[thread overview]
Message-ID: <1390406333.80620.YahooMailNeo@web171303.mail.ir2.yahoo.com> (raw)
In-Reply-To: <877g9s6qqh.fsf@bzg.ath.cx>

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

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 <bzg@gnu.org> escribió:
 
Hi Miguel,


Miguel Ruiz <rbenit68@yahoo.es> 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

[-- Attachment #2: Type: text/html, Size: 2664 bytes --]

  reply	other threads:[~2014-01-22 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22  2:33 bug in 8.2.5f for using tables as data in python? John Kitchin
2014-01-22  4:52 ` Nick Dokos
     [not found] ` <1390394132.49030.YahooMailNeo@web171302.mail.ir2.yahoo.com>
2014-01-22 12:41   ` Miguel Ruiz
2014-01-22 14:22     ` Bastien
2014-01-22 15:58       ` Miguel Ruiz [this message]
2014-01-22 16:11         ` Bastien
2014-01-22 16:39           ` John Kitchin

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=1390406333.80620.YahooMailNeo@web171303.mail.ir2.yahoo.com \
    --to=rbenit68@yahoo.es \
    --cc=bzg@gnu.org \
    --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).