From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 oGD5MuwE22Zu+gAA62LTzQ:P1 (envelope-from ) for ; Fri, 06 Sep 2024 13:34:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oGD5MuwE22Zu+gAA62LTzQ (envelope-from ) for ; Fri, 06 Sep 2024 15:34:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=bTUOghap; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=ItZjZGMJ; 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=adamkovic.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725629676; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=H8X6QgtAzW16kmjYWaWFVI+GXTj4CRV/ku1k8/P9P1Y=; b=qUqXAZijr+mzancZ/tyrm1/g9FVjHHG4XMobLALa5fGPZD0UPcQ/1kJSsAfl8h/rG2cbcy WIGA85Iosui8lMB3nae+hJXjTyW6A9j0yBJB7ZzUwOGZLSxVimBc/7L3CMeHZgqG/9/Gz3 x2lvrIf89w835p3IijBG8JeXVTQNeFbFNQa2waCgIaPohdMCFOHIiRHDA+4u7bB3lfXdqL Q9vCWvsVnKw5nkZ/94HJRaYwE4k9aiBQU82ySp2IRFlb1g7p256hK3CJoIYuqFDuVjlCz7 nn7IkrM8ymgXAP7RKcy+IsQdcn5BXgwS/lSg+TrmhZoJn0mdlbAQGjjFGJ1mMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm2 header.b=bTUOghap; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=ItZjZGMJ; 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=adamkovic.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725629676; a=rsa-sha256; cv=none; b=VKQh4TcGQgIdcZOL43/5qFXL8BcFdspPRcHgkYpXtPZYV3FmxbB7s6TiX1OQNVBq8oOAi5 RKptX7XTM9hoUhh8TgSkQDGKep7ZHqY95IV0J9S+yL2LanQkZYiSdTaKWVTa/FpyPScPt+ rO9RNQfBQ4R1tC7lu9fMY9zgIar68O84Dwq251M53Hb/ynolH9/gljL6fWBv561zOXgf+m uIb00QOpGcNDEfxz17uvPOBQPnEFYnjvk/LDtKCtL5YZqZTxe8GTbzNk6DmFGhdotzbjrn oeYL5/v0HRvkECe3lnsFCLrCkVws7FoLKPIb+v+DHdjBJ7VwU5YH8W+yX9zAJA== 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 22AF169498 for ; Fri, 06 Sep 2024 15:34:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smZ5r-0007A3-12; Fri, 06 Sep 2024 09:33:43 -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 1smZ5o-00072k-I5 for emacs-orgmode@gnu.org; Fri, 06 Sep 2024 09:33:40 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smZ5l-0000RP-78 for emacs-orgmode@gnu.org; Fri, 06 Sep 2024 09:33:39 -0400 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 609F41140238 for ; Fri, 6 Sep 2024 09:33:34 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 06 Sep 2024 09:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm2; t=1725629614; x=1725716014; bh=H8 X6QgtAzW16kmjYWaWFVI+GXTj4CRV/ku1k8/P9P1Y=; b=bTUOghapVBcIK0Qx72 DJFWT5+AZ7xVzTuVNqPOPm5R1PzriByvB7OdjjBONc3sM5T8b3qGs8qSupcg1w1J KfDB/V9uX0rLTBHnhKc2dt6JvNtqK56idGtaZl1nerdQx37zoz8mIv+XOByyZDJt ufTlgfLvHD6SE/h8CynYNcTOd/S7GsCQtOwgkVe9M+mPNJ2a0ruqriDQ044WaOmQ rhFOSQkk6JUIDid4wTFgORrB80oqFdJCdZlebQgXSHJCe+RgQ0hzJ7OMnhguoGTC TliRkLHp69M4GnqEYQGmck8TBwcII/8R4uhwkkhuHGlynr4/Af+nctmc/5A3ujAC nQ0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1725629614; x=1725716014; bh=H8X6QgtAzW16kmjYWaWFVI+GXTj4 CRV/ku1k8/P9P1Y=; b=ItZjZGMJ/BdmU8xP12Z4CNY2CbMUcRS8asDIfDdR/+pS VRFz4/jEPCsAz+KQ5UjBsebbz78XR6Voo2IvI/E2NLAjc2Flnkn734C18069A2lR EwEE6fv+GhMQqW3hYRqO3JHKveptMw5vAB01LQzf0kIvNFkwQ62wBtqQTrK6MIrY Y5F+D9oXRLqruMSmOjp076KKzFkYDu2P6DelIJLWMePJbWc/4DKGbbEZT277vXOJ VYb5VldzAayzQyKJjG6nZfAuEPw7ow/ebkYUKzkAHvf5Ugew4NrUOIlAc57F3R4F TGhql5VUag9d5dn8mNJygjmNXbWiTjc1xqBIlzHVwQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeiuddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuff fkgggtgfesthhqredttddtjeenucfhrhhomheptfhuugholhhfucetuggrmhhkohhvihgt uceorhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgqeenucggtffrrghtthgvrhhnpe ekleekvedtieduveevtdffgefhvdfghfekieelheethfduieeutedugeehffdvffenucff ohhmrghinheprggurghmkhhovhhitgdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehruhguohhlfhesrggurghmkhhovhhitgdrohhr ghdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvg hmrggtshdqohhrghhmohguvgesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 6 Sep 2024 09:33:33 -0400 (EDT) From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Org Babel says 1 + 1 in Python is None Date: Fri, 06 Sep 2024 15:33:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.157; envelope-from=rudolf@adamkovic.org; helo=fhigh6-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 22AF169498 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -10.67 X-Spam-Score: -10.67 X-TUID: yccKPFNCDEnJ 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). (2) So, I try it, and get: src_python{1 + 1} {{{results(=3DNone=3D)}}} I expected this to be 2. Questions: - Who is correct: (1) the documentation or (2) the implementation? - If (2) is correct, do I have to write `return' every time? Rudy --=20 "Mathematics takes us still further from what is human into the region of absolute necessity, to which not only the actual world, but every possible world, must conform." --- Bertrand Russell, 1902 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org