Re: Shorthand for binary bitwise math?

2010-02-21 Thread 120
On Mon, 2010-02-22 at 11:06 +1000, Dave Tang wrote: > On Fri, 19 Feb 2010 22:58:24 +1000, 120 wrote: > > > Apologies for my error - if I may point out that sending 'off list' > > replies is also equally rude. > > May I ask about this netiquette? I usually thank people who have helped me > "off

Re: Shorthand for binary bitwise math?

2010-02-21 Thread Dave Tang
On Fri, 19 Feb 2010 22:58:24 +1000, 120 wrote: Apologies for my error - if I may point out that sending 'off list' replies is also equally rude. May I ask about this netiquette? I usually thank people who have helped me "off list", as I don't like to clog everyone's email with my thank you

Re: octal?!

2010-02-21 Thread John W. Krahn
Bryan R Harris wrote: John W. Krahn wrote: Bryan R Harris wrote: "print+(eval)[-1]"??? What's the "+" for? You're amazing, John. The "+" is so that you don't get a syntax error because "print(eval)" with "[-1]" after it is nonsensical. BTW, why are you using a list slice anyway? Won't

Re: octal?!

2010-02-21 Thread Shlomi Fish
Hi Bryan. On Sunday 21 Feb 2010 18:11:26 Bryan R Harris wrote: > > Thanks for not top-posting and for following E-mail netiquette. See below > > for my response. > > Uh, sure. Most people don't get thanked for this, so I'm curious what > prompted that. Just giving positive feedback, to encourag

Re: octal?!

2010-02-21 Thread Bryan R Harris
> Thanks for not top-posting and for following E-mail netiquette. See below for > my response. Uh, sure. Most people don't get thanked for this, so I'm curious what prompted that. > On Sunday 21 Feb 2010 05:01:12 Bryan R Harris wrote: >>> On Saturday 20 Feb 2010 04:53:18 Bryan R Harris wrote:

Re: octal?!

2010-02-21 Thread Bryan R Harris
> Bryan R Harris wrote: >> >>> Bryan R Harris wrote: This is unintuitive: perl -e 'print "> "; while(<>) {print(( eval $_ )[-1], "\n> ")}' ... then enter 2*012. It prints "20". 2*12 is obviously 24, but perl's interpreting that "012" as octal. We sometimes hav

Re: octal?!

2010-02-21 Thread Shlomi Fish
Hi Bryan! Thanks for not top-posting and for following E-mail netiquette. See below for my response. On Sunday 21 Feb 2010 05:01:12 Bryan R Harris wrote: > > On Saturday 20 Feb 2010 04:53:18 Bryan R Harris wrote: > >> This is unintuitive: > >> perl -e 'print "> "; while(<>) {print(( eval $_ )[