emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* python :session and org_babel_python_eoe
@ 2011-02-10 17:46 Myles English
  2011-02-10 18:45 ` Dan Davison
  0 siblings, 1 reply; 2+ messages in thread
From: Myles English @ 2011-02-10 17:46 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Is this behaviour expected?:

#+begin_src python :session
import sys
#+end_src

#+results:

But in the python interpreter there is this:

"""
>>> import sys


open('/home/myles/tmp/scratch/python-4938gzQ', 'w').write(str(_))


'org_babel_python_eoe'
>>> >>> >>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
>>> >>> >>> 'org_babel_python_eoe'
>>> 
"""

The sys module did indeed import correctly though.  And that file
(/home/myles/tmp/scratch/python-4938gzQ) is empty.

Versions:
 - Python 2.7.1 (r271:86832, Jan  6 2011, 11:45:30) [GCC 4.5.2] on
   linux2
 - orgmode from git 7473e3 Wed Feb 9 17:30
 - GNU Emacs 23.2.1(x86_64-unknown-linux-gnu)

It looks related to the issue, described as being fixed, in this
thread: ("org-babel :session breaks returning things with python?")
http://news.gmane.org/find-root.php?message_id=%3c871v669swp.fsf%40gmail.com%3e

Thanks,

Myles

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

end of thread, other threads:[~2011-02-10 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10 17:46 python :session and org_babel_python_eoe Myles English
2011-02-10 18:45 ` Dan Davison

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