From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:54496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyPEm-00077w-Fe for gwl-devel@gnu.org; Mon, 25 Feb 2019 18:00:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyPEl-0007yI-Qg for gwl-devel@gnu.org; Mon, 25 Feb 2019 18:00:40 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:37642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyPEl-0007sy-G1 for gwl-devel@gnu.org; Mon, 25 Feb 2019 18:00:39 -0500 Received: by mail-qk1-x729.google.com with SMTP id m9so6459096qkl.4 for ; Mon, 25 Feb 2019 15:00:20 -0800 (PST) MIME-Version: 1.0 References: <87lg2atsxx.fsf@elephly.net> In-Reply-To: <87lg2atsxx.fsf@elephly.net> From: zimoun Date: Tue, 26 Feb 2019 00:00:08 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: variable interpolation in code snippets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+kyle=kyleam.com@gnu.org Sender: "gwl-devel" To: Ricardo Wurmus Cc: gwl-devel@gnu.org Hi, Wow! It improves a lot the readibilty, IMHO. On Wed, 20 Feb 2019 at 18:04, Ricardo Wurmus wrote: > > process: python-test > package-inputs : list "python2" > data-inputs > list "sample.bam" "hg38.fa" "abc" > procedure # python { > import os > > def hello(): > print "hello from python 2" > print "{{data-inputs}}" A quick question. The `data-inputs` is a list, so `print "{{data-inputs}}` should return: "sample.bam" "hg38.fa" "abc" Right? How to refer to "hg38.fa" only? print "{{second data-inputs}}" Thank you for this nice improvement ! All the best, simon