emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [BUG] org-babel :session breaks returning things with python?


From: Christopher Allan Webber
Subject: [Orgmode] [BUG] org-babel :session breaks returning things with python?
Date: Thu, 04 Nov 2010 10:59:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hello,

In the latest org master, I get this issue:

#+BEGIN_SRC python
return 33
#+END_SRC

#+results:
: 33

#+BEGIN_SRC python :session
return 33
#+END_SRC

#+results:
: org_babel_python_eoe

Not really sure what's happening, but I'm seeing inside of *Python*:

: >>> return 33
: 
: open('/tmp/babel-283184et/python-28318XQy', 'w').write(str(_))
: 
: 
: 'org_babel_python_eoe'
:   File "<stdin>", line 1
: SyntaxError: 'return' outside function
: >>> >>> >>> Traceback (most recent call last):
:   File "<stdin>", line 1, in <module>
: NameError: name '_' is not defined
: >>> >>> >>> 'org_babel_python_eoe'
: >>> 



reply via email to

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