Re: [OE-core] accessing variables

2012-02-01 Thread Chris Larson
On Wed, Feb 1, 2012 at 11:16 AM, Otavio Salvador wrote: > On Wed, Feb 1, 2012 at 16:15, Andreas Müller > wrote: >> >> another stupid question from my side: >> >> do >> >> bb.data.getVar('foo', d, 1) >> >> and >> >> d.getVar('foo', 1) >> >> access the same data? > > > It does but the later is supp

Re: [OE-core] accessing variables

2012-02-01 Thread Andreas Müller
On Wed, Feb 1, 2012 at 7:24 PM, Martin Jansa wrote: > On Wed, Feb 01, 2012 at 07:15:19PM +0100, Andreas Müller wrote: >> another stupid question from my side: >> >> do >> >> bb.data.getVar('foo', d, 1) >> >> and >> >> d.getVar('foo', 1) >> >> access the same data? > > Should be and later is prefer

[OE-core] accessing variables

2012-02-01 Thread Andreas Müller
another stupid question from my side: do bb.data.getVar('foo', d, 1) and d.getVar('foo', 1) access the same data? Thanks in advance Andreas ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-

Re: [OE-core] accessing variables

2012-02-01 Thread Martin Jansa
On Wed, Feb 01, 2012 at 07:15:19PM +0100, Andreas Müller wrote: > another stupid question from my side: > > do > > bb.data.getVar('foo', d, 1) > > and > > d.getVar('foo', 1) > > access the same data? Should be and later is preferred AFAIK, see: http://git.openembedded.org/openembedded-core/co

Re: [OE-core] accessing variables

2012-02-01 Thread Joshua Lock
On 01/02/12 10:15, Andreas Müller wrote: another stupid question from my side: do bb.data.getVar('foo', d, 1) and d.getVar('foo', 1) access the same data? Yes. The first is calling the class method and passing in an instance of a data object, the second is calling the method on the objec

Re: [OE-core] accessing variables

2012-02-01 Thread Otavio Salvador
On Wed, Feb 1, 2012 at 16:15, Andreas Müller wrote: > another stupid question from my side: > > do > > bb.data.getVar('foo', d, 1) > > and > > d.getVar('foo', 1) > > access the same data? > It does but the later is supported on recent bitbake versions only. -- Otavio Salvador