Re: Bitwise operators. Differences from javascript and PHP.

2006-11-17 Thread John Machin
On Nov 17, 9:38 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > John Machin wrote: > >http://theopensourcery.com/phplogic.htm > > > "In effect the bitwise operations [words "can be" omitted, I presume]"can > > only be", more likely. Yes, probably. > > > safely applied to integer variables - the

Re: Bitwise operators. Differences from javascript and PHP.

2006-11-17 Thread Fredrik Lundh
John Machin wrote: > http://theopensourcery.com/phplogic.htm > > "In effect the bitwise operations [words "can be" omitted, I presume] "can only be", more likely. > safely applied to integer variables - their effect on booleans, > float/double or string variables can be predicted but are not re

Re: Bitwise operators. Differences from javascript and PHP.

2006-11-17 Thread John Machin
[EMAIL PROTECTED] wrote: > I can't understand a little thing in bitwise operations. > > > In PHP and Javascript > 4653896912>>13 = -212992 > > In Python and Ruby > 4653896912>>13 = 568102 > > In Python and Ruby - it's ok. I understand. > But i need to get in Python same value as in PHP and Javascr

Re: Bitwise operators. Differences from javascript and PHP.

2006-11-17 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I can't understand a little thing in bitwise operations. > > In PHP and Javascript > 4653896912>>13 = -212992 > > In Python and Ruby > 4653896912>>13 = 568102 > > In Python and Ruby - it's ok. I understand. > But i need to get in Python same value as in PHP and Javasc

Bitwise operators. Differences from javascript and PHP.

2006-11-17 Thread skorobogatov
I can't understand a little thing in bitwise operations. In PHP and Javascript 4653896912>>13 = -212992 In Python and Ruby 4653896912>>13 = 568102 In Python and Ruby - it's ok. I understand. But i need to get in Python same value as in PHP and Javascript. How can i do this? -- http://mail.pyt