From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cBNlEpgJC2RdaQEASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 11:42:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IBtYEpgJC2RgeQAA9RJhRA (envelope-from ) for ; Fri, 10 Mar 2023 11:42:32 +0100 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 CA0C911340 for ; Fri, 10 Mar 2023 11:42:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paaCd-0002Tl-F3; Fri, 10 Mar 2023 05:42:23 -0500 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 1paaCb-0002SQ-DE for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 05:42:21 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paaCZ-00070w-Lw for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 05:42:21 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5CDDC2405EE for ; Fri, 10 Mar 2023 11:42:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1678444938; bh=GYUFz6A41HXiBlUYYlxubAjAH3A9o6HWkp//9WxxXOM=; h=Date:Subject:To:Cc:From:From; b=pcHFguMSZ/X5KK0xXzlIlReM8o335/FSMCRvO56PKM6ctisYihcV1WPcY9P3WcO5i EQN3ccS+dASRqhifmrRGdkPVNeG6aKp+QFgdZPOu7WNCJIQ5JO7w0OZKNU4yYW3AV6 Kujw9AoqcQgBPEtypYmcwCT5niZEq1OadewxkZ34wIzqm2Esu1mwF6wO/uxdPMOLD4 D/bdfjctD3Fp9IIUDZK5IkE3yryWp+7LOUz5Cq/xkCNxruCxcHPr+K6nucovQtRpVp /Bt2zGTYX2C2m018z4ae+xAT+1iRvbLPNYOCpUtlbruau6WVEmbSTgbgwoO/1wMmBO 22pDZcMtLYycg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY2gF3kx9z9rxN; Fri, 10 Mar 2023 11:42:17 +0100 (CET) Message-ID: <46e6f579-9eca-e1da-06ea-f2478a603c5a@posteo.de> Date: Fri, 10 Mar 2023 10:42:17 +0000 MIME-Version: 1.0 Subject: Re: org-babel guile source block bug in handling multiple values Content-Language: en-US To: Ihor Radchenko Cc: Bruno Barbier , emacs-orgmode@gnu.org References: <9eab60bc-9b82-e037-d63b-3d879573ae32@posteo.de> <87v8jceihi.fsf@localhost> <7fc63848-d6d3-80e0-ae78-00967990813d@posteo.de> <64079614.170a0220.5a0d3.0a23@mx.google.com> <97ee254e-72d2-2bdf-e026-78bde076f1f9@posteo.de> <6408e424.5d0a0220.8862a.2a62@mx.google.com> <87sfeeoysf.fsf@localhost> From: Zelphir Kaltstahl In-Reply-To: <87sfeeoysf.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.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_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678444952; 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=WjXKZ6SSupza1CyIr7jgeBXeIpoUzBd7QNBmUMcJITo=; b=Xn/+IWecABR3N4W7f+7BD7qxzO4XllisgGfpy9ONdZX9PQVKUwMe+0Pd2UOPdC1bK9myEg nf6cLzinofgPnjJkICnUd4WYxDqpcZWXwislp8ENvtaLMtG01SQCu+ePMyMwGRxq7yFGzN aFF/iD1WdD4mZisEBekW8l94tBCpMjcHZo6s+oE3q4QfcdtsIgNMh5p9DyIo1CcqnjHsNp gkRKd6ua0iVyqt7W1Sc4mH3ijFnayV+NyGpvKxNwTtRgCj1XWw1t06HApzAXRqK91Dx8BA vUVCkNjMhTR1Ofdzxncxc+3xPSwsYpYRDeClsIMpFrohsmAzTY8HO5oD4y3qPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=pcHFguMS; 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.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678444952; a=rsa-sha256; cv=none; b=ciXbK5vBFx+Od7lWyW3SKfeejDtGRHNngmX2qjDvwphpwDJPzFiSDvDtHM7y1itiv4v90T XaMOI9ipvClRHpvnM/by5q/I6jXEdmkqVpPEVjxv6yBAyb9oLne1+utJ/Or/Cl5Ffz8ERQ PNMSlHIPOFXHFBuJ/Kxk1JtD1AkQv7qPjtIYU19LoQWs3m7IcFfpAE6M2hpfmnSfRJ41Jb jKtj57HXoLbV7q3If+rC+vii4Bv+STKJIfjGC3IU5lFXD5uWd2iFAXoiJgCisBAFCuUafD Lu5D08StPOlzaKfMBQFpdvO3ibPqwWC/QJUAba8uc1ai3JkoPeV2tler2Ulmnw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=pcHFguMS; 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.de X-Migadu-Spam-Score: -7.77 X-Spam-Score: -7.77 X-Migadu-Queue-Id: CA0C911340 X-Migadu-Scanner: scn1.migadu.com X-TUID: HX5eEhGBfhFD On 3/9/23 14:10, Ihor Radchenko wrote: > Zelphir Kaltstahl writes: > >> ~~~~START~~~~ >> #+name: python-imports >> #+begin_src python :python /usr/bin/python3 :results output replace drawer :var x=4 >> import math >> >> y = math.sqrt(x) >> # print(y) >> #+end_src >> >> #+name: python-usage >> #+begin_src python :python /usr/bin/python3 :return :noweb strip-export :results value replace drawer >> <> >> >> print("y: {}".format(y)) >> #+end_src >> ~~~~~END~~~~~ >> >> Unfortunately, this example does not seem to work at all, but for a different >> reason: >> >> It seems that using any Python source block with :var header args via :noweb >> does not work, as it then behaves in the way, that it merely pasted the included >> source block, without first putting in the :var values into the variables. I get >> errors about those :var variables being undefined, of course, since they are on >> the included source block, not on the including one: >> >> ~~~~START: *Org-Babel Error Output*~~~~ >> Traceback (most recent call last): >> File "", line 10, in >> File "", line 5, in main >> NameError: name 'x' is not defined >> [ Babel evaluation exited with code 1 ] >> ~~~~~END~~~~~ > This is expected. Noweb includes the src block code without altering it. > See 16.11 Noweb Reference Syntax > > We may probably clarify this in the manual. Would it be helpful? I think it would be helpful. I merely tried Python, because it was at hand and because I did not find ob-racket in M-x package-list RET and did not have another Scheme installed. Cannot say, whether others find the behavior confusing or not, but I imagine I would find it helpful, if it was mentioned in the docs. -- repositories: https://notabug.org/ZelphirKaltstahl