From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4LdDM6WxC2eWgAEAe85BDQ:P1 (envelope-from ) for ; Sun, 13 Oct 2024 11:40:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4LdDM6WxC2eWgAEAe85BDQ (envelope-from ) for ; Sun, 13 Oct 2024 13:40:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cYJydUBK; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728819621; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MAyRYzOFlE3zOGAT9vJT898VcVHYtpxrV8n6wwt5llY=; b=oQAAXRXoKHgxxr+NraH255dIsm00xUs512aqEDv4vK8iImFyfD6WclZfoC90cVvE9SBPmP rFvdDVNWDchgc9kiyoTNiOk0eD8mMFd2ahQFLKIxkmDjhRj+7UCCfO3SIwOIrqdz94T8Fy uc9PlYiELeP9RCKSSJ6Ha1o6Q4byCeKDmJqJMdbZ62N2MRMY11d5qC9MjkeG6eTh7oS11/ ZVY70gTY/TR3fBmLcM6GYgAtEnuIBgJ3V/7PhTvZFLVRBbWvCgXNN6gyLX6IXWvSBKnM8L OxoYOp36gnVafE4ZkXO0kb2CxcnXqSSVoHg6ehyhkJFGOK1Qbw4gfqhea2+yCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728819621; a=rsa-sha256; cv=none; b=G3Juz9IdE9eD9Pwfbh2lmPwfd7atESUunsi/zXboFBiv2AilnpHQShhGPZH3cOlInuFPyK 2QILHnuccpNoB06RP9il1PkOpYht0XBBjsAVvJrI/e2estvWZJ6HpUVbGixopY3miQcTei 0Y9M4k0PrJzwg9u4IcKom0820S4slFPxW6p1PKYQk5/gxCcB8/luuzxhvcD0QtLbR8yVP8 qXKJ6csLAXjRKO5jFfWDQkolRox67UuDSQKK200NWNuGOJd6U+Wb9nhKJvZOozlUYVvnkQ rO/62yjhZ5lDBRTCIK1V2I3eVhkONbjJc9ZZvp/i1VPLIRQWbeQ7XNWodL/8kQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cYJydUBK; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 49A76507C for ; Sun, 13 Oct 2024 13:40:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szwwY-000167-95; Sun, 13 Oct 2024 07:39:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szwwT-00015O-Gs for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 07:39:23 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szwwR-0007hD-Ax for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 07:39:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B4021240027 for ; Sun, 13 Oct 2024 13:39:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1728819556; bh=LT/KBbI8FiCBkhvhFUwnh4ksY6Zrvf8nHrg12Q+gtbI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=cYJydUBK4LmWINRd+CxIX81+9z7HYnN/1XYmsShzxDZ/qSTAY8PeiVAGIFDRIs+/j TlOVkrMzDGdNC64ccO87uMUQdnIJecFFARbc8SVwlf5syiR7tEyUbhIAeC2vjUTYd3 VCpJVN9wuY8prIoTtVAyHEbkSXEhjoHFTkYIFEVUFn0Rib6gzNVND5S+npx/dqXPgj 4RLmMr982sC+E9oSBfvj0emWzDWlmu5hbGu+KXeT1wN3kJEmxpsOHMs6l29Nmc3s3x yl4BXHU1FX07p7Ezg2k6JN96UlUi/TMpAxQLoZio7cvaf0K3FlNcrdYKjHzr+S88Jm kFVkI+L8EW9Vg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XRJKv5MLjz6twp; Sun, 13 Oct 2024 13:39:15 +0200 (CEST) From: Ihor Radchenko To: "Dr. Arne Babenhauserheide" Cc: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= , emacs-orgmode@gnu.org Subject: Re: Org Babel says 1 + 1 in Python is None In-Reply-To: <87y143x4q0.fsf@web.de> References: <87y143x4q0.fsf@web.de> Date: Sun, 13 Oct 2024 11:41:05 +0000 Message-ID: <87plo4z0vi.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.54 X-Spam-Score: -4.54 X-Migadu-Queue-Id: 49A76507C X-Migadu-Scanner: mx13.migadu.com X-TUID: 1K1K9wQOyteX "Dr. Arne Babenhauserheide" writes: >> Today, I decided to start using Python in Org. >> >> (1) I read in "WORG": >> >> :results {output, value}: [...] Value results are the value of the >> last expression evaluated in the code block. Value mode is the default >> (as with other languages). > > In the org-mode documentation I read: > > For languages like Python, an explicit return statement is mandatory = when using =E2=80=98:results value=E2=80=99. > https://orgmode.org/manual/Results-of-Evaluation.html > > So I think WORG needs to be fixed. > > Can you send a patch? > https://git.sr.ht/~bzg/worg Yes, patch would be welcome. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at