All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rich Pixley <rich.pixley@palm.com>
To: "openembedded-devel@openembedded.org"
	<openembedded-devel@openembedded.org>
Subject: Re: getVar. setVar, "d", etc.
Date: Tue, 05 Feb 2008 18:29:08 -0800	[thread overview]
Message-ID: <47A91B74.9040605@palm.com> (raw)
In-Reply-To: <1202248991.4619.5.camel@localhost.localdomain>

When does d change?

I've got the following bb file which produces results which puzzle me.  
What I'm seeing is that the two values for d are different instances and 
that the second function doesn't see the variable which was set in the 
first because they're using different dictionaries.

--rich

def setting(d):

    import bb

    print "setting sets in ", d, "\n"

    bb.data.setVar('FOO', 'bar', d)

    return "setting"

X := ${@setting(d)}

def getting(d):

    import bb

    got = bb.data.getVar('FOO', d)

    print "getting gets %s from " % (got), d, "\n"

    return "getting"

Y := ${@getting(d)}




  parent reply	other threads:[~2008-02-06  2:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 22:05 getVar. setVar, "d", etc Rich Pixley
2008-02-04 23:05 ` Richard Purdie
2008-02-05  1:35   ` Rich Pixley
2008-02-05  2:37   ` Rich Pixley
2008-02-05 22:03     ` Richard Purdie
2008-02-05 23:13       ` Rich Pixley
2008-02-06  2:29       ` Rich Pixley [this message]
2008-02-06 12:18         ` Richard Purdie
2008-02-06 18:54           ` K. Richard Pixley
2008-02-07  0:54             ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47A91B74.9040605@palm.com \
    --to=rich.pixley@palm.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.