Re: [RFC] Blubber, a tool to set up yocto/poky projects easily
Josef Holzmayr <jholzmayr@...>
Hello Alex,
Alex J Lennon <ajlennon@...> hat am 10. März 2014 um 12:43 fwiw I'd have thought myself that string comparison should be stringI've interpreted it roughly the same so far, but they ValueError point seems to valid to me too (gah, I really know why I usually avoid dynamically typed languages!). But the solution for me in this context seems to be then to use something like: DUMMYSTRING = "foobar" def safestringcompare(stra, strb): return type(DUMMYSTRING) == type(stra) and type(stra) == type(strb) and stra == strb Cheers,Greetz Josef/Leto This discussion can go over and over, is more a flavor thing: beingAgreed, with the exception of the above said. But you're right, I'll look |
|