From mboxrd@z Thu Jan 1 00:00:00 1970 From: Soapy Smith Subject: Python Code Block error with header option :results output Date: Fri, 31 Jan 2014 16:24:17 -0500 Message-ID: <1391203457.2534.18.camel@raven-CM5571> References: <1391187052.2534.12.camel@raven-CM5571> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9LZv-0001cy-PB for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:24:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9LZm-0004jU-D8 for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:24:47 -0500 Received: from qmta01.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:16]:38639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9LZm-0004jQ-7u for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 16:24:38 -0500 In-Reply-To: <1391187052.2534.12.camel@raven-CM5571> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello- I am not a user of Python (yet). During a comparison of code block behavior between Clojure and Python, I discovered a possible Python error. Here is the code block: #+begin_src python :results output a = (1, 2, 3, 4) return a #+end_src The evaluation of this block results in this error: File "", line 2 SyntaxError: 'return' outside function Could someone please comment if this is expected Python behavior? I am using org 8.2.4. Regards, Greg