Re: Membership of multiple items to a list

2009-02-02 Thread Stephen Hansen
On Sun, Feb 1, 2009 at 7:47 PM, Ben Finney bignose+hates-s...@benfinney.id.au wrote: rdmur...@bitdance.com writes: I don't even see Stephen Hansen's posts. My newsreader just shows the header and says [HTML part not displayed]. Likewise. Yeah, I know HTML is bad on newsgroups. I didn't

Re: Membership of multiple items to a list

2009-02-02 Thread Stephen Hansen
On Sun, Feb 1, 2009 at 7:47 PM, Ben Finney bignose+hates-s...@benfinney.id.au wrote: rdmur...@bitdance.com writes: I don't even see Stephen Hansen's posts. My newsreader just shows the header and says [HTML part not displayed]. Likewise. Yeah, I know HTML is bad on newsgroups. I didn't

Re: Membership of multiple items to a list

2009-02-02 Thread Peter Pearson
Sorry to whine, but here's how this looks on slrn: On Mon, 2 Feb 2009 00:24:19 -0800 (PST), Stephen Hansen wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) ---firegpg072eqfqovlg25y5x7pu7mz3 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding:

Re: Membership of multiple items to a list

2009-02-02 Thread Duncan Booth
Stephen Hansen apt.shan...@gmail.com wrote: I'm re-sending this same message as the OpenPGP S/MIME attachment format -- just so test if its actually readable by news clients in general. I have absolutely no idea. Not touched a news client in years and years, as I said. It is readable in

Re: Membership of multiple items to a list

2009-02-02 Thread Stephen Hansen
On Mon, Feb 2, 2009 at 10:21 AM, Duncan Booth duncan.bo...@invalid.invalidwrote: Stephen Hansen apt.shan...@gmail.com wrote: I'm re-sending this same message as the OpenPGP S/MIME attachment format -- just so test if its actually readable by news clients in general. I have absolutely no

Re: Membership of multiple items to a list

2009-02-02 Thread Steve Holden
Stephen Hansen wrote: On Sun, Feb 1, 2009 at 7:47 PM, Ben Finney bignose+hates-s...@benfinney.id.au wrote: rdmur...@bitdance.com writes: I don't even see Stephen Hansen's posts. My newsreader just shows the header and says [HTML part not displayed]. Likewise. Yeah, I know HTML is bad on

Re: Membership of multiple items to a list

2009-02-02 Thread D'Arcy J.M. Cain
On Mon, 02 Feb 2009 17:34:51 -0500 Steve Holden st...@holdenweb.com wrote: Or configure multiple personalities with the same email address but different settings, so all you have to do is switch personalities appropriately. They have pills for that now. -- D'Arcy J.M. Cain da...@druid.net

Re: Membership of multiple items to a list

2009-02-02 Thread rdmurray
My client can handle your Mime and shows me the text part of the signed message. It's not as pretty as just seeing an unsigned text message, but that's a client problem, not yours :) I would like to think that all newsreader clients could handle mime at this point, but who knows. --RDM --

Membership of multiple items to a list

2009-02-01 Thread inkhorn
Dear all, I'd like to know how to elegantly check a list for the membership of any of its items to another list. Not caring for elegance, I would use the following code: blah = [1,2,3] yadda = [3,4,5,6] blah[0] or blah[1] or blah[2] in yadda Please tell me how to change the preceding code

Re: Membership of multiple items to a list

2009-02-01 Thread Christian Heimes
inkhorn schrieb: Dear all, I'd like to know how to elegantly check a list for the membership of any of its items to another list. Not caring for elegance, I would use the following code: blah = [1,2,3] yadda = [3,4,5,6] blah[0] or blah[1] or blah[2] in yadda Please tell me how to

Re: Membership of multiple items to a list

2009-02-01 Thread Stephen Hansen
I'd like to know how to elegantly check a list for the membership of any of its items to another list. Not caring for elegance, I would use the following code: That's one of the useful properties of sets: a = [1,2,3] b = [3,4,5,6] set(a) set(b)set([3]) set(a).intersection(b)set([3]) That's

Re: Membership of multiple items to a list

2009-02-01 Thread Paul Rubin
inkhorn matt.dub...@sympatico.ca writes: blah = [1,2,3] yadda = [3,4,5,6] blah[0] or blah[1] or blah[2] in yadda if set(blah) set(yadda): print yes -- http://mail.python.org/mailman/listinfo/python-list

Re: Membership of multiple items to a list

2009-02-01 Thread inkhorn
Wow thanks for the lightning fast reply! This does exactly the right job. Matt On Feb 1, 3:01 pm, Stephen Hansen apt.shan...@gmail.com wrote: I'd like to know how to elegantly check a list for the membership of any of its items to another list.  Not caring for elegance, I would use the

Re: Membership of multiple items to a list

2009-02-01 Thread Steven D'Aprano
On Sun, 01 Feb 2009 12:01:11 -0800, Stephen Hansen wrote: brdiv class=gmail_quoteblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;br I'd like to know how to elegantly check a list for the membership ofbr any of its

Re: Membership of multiple items to a list

2009-02-01 Thread rdmurray
Quoth Steven D'Aprano ste...@remove.this.cybersource.com.au: On Sun, 01 Feb 2009 12:01:11 -0800, Stephen Hansen wrote: brdiv class=gmail_quoteblockquote class=gmail_quote style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;br I'd like to know how

Re: Membership of multiple items to a list

2009-02-01 Thread Stephen Hansen
Stephen, do you see the utter mess your posts look like to some others? Whoops, I was experimenting with a new Firefox add-on that fiddled with Gmail, and hadn't noticed it changed my output format to HTML out from under me. Sorry! --S -- http://mail.python.org/mailman/listinfo/python-list

Re: Membership of multiple items to a list

2009-02-01 Thread Ben Finney
rdmur...@bitdance.com writes: I don't even see Stephen Hansen's posts. My newsreader just shows the header and says [HTML part not displayed]. Likewise. Note to people who want to communicate in online fora: Set your client to generate a “text/plain” body only. HTML is either irrelevant to