[bitbake-devel] getAllKeysWithFlags: Issue when returning the dump var

Christopher Larson clarson at kergoth.com
Tue Nov 22 20:33:46 UTC 2016


On Tue, Nov 22, 2016 at 1:11 PM, Paul Eggleton <
paul.eggleton at linux.intel.com> wrote:

> On Tue, 22 Nov 2016 16:20:30 sujith h wrote:
> > Finally I found that not all data in my case was
> > string/list/tuple/dict/None/int/float. That is those data types which
> can
> > be marshalled: https://docs.python.org/3/library/xmlrpc.client.html. But
> > there was a data type :
> > v = <subprocess.Popen object at 0x7f56f4964ef0>. So this was causing the
>
> What on earth is a subprocess.Popen object doing in the datastore? Which
> variable / flag is that?


It’s an internal class, the object is tucked into the metadata to exchange
info between event handlers. The variable starts with ‘_’ so is clearly
meant to be internal. That said, there’s nothing preventing use of any
arbitrary type in a metadata value, so if code is expecting particular
types, it should be fixed to exclude types it doesn’t understand, or just
str() the values.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20161122/811fdc29/attachment-0002.html>


More information about the bitbake-devel mailing list