> Hi Kipp,
> 
> I'd say don't bother pack()ing.  At the moment, I think the 
> function pretty much s**ks.  use eval() instead.  The 
> following doesn't have that one-liner compactness of the 
> others, but it shows you what is going on.  The bitwise & 
> does a real cute little trick with its operands, evaluating 
> them in hex context or digit-by-digit (I can't tell which, 
> and the two may be functionally indistinguishable.)  
> Therefore I got results like 192 & 255 = 010 [the nine and 
> five match on the 0 bit, no other digits match any bits with 
> their corresponding digit in the other number.

well, the reason i posted the question was to avoid bit twiddling (because I
was in a hurry and lazy ;) ). but since you have provided impressive and
working code, i might as well use it :-)

Thanks Joseph and Happy hollidays
Jim
 

 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to