Re: learning and experimenting python.

2017-01-01 Thread Tim Golden
On 02/01/17 06:40, Ian Kelly wrote: On Mon, Jan 2, 2017 at 12:15 AM, Ian Kelly wrote: Since they're unlikely to do that however, Then again, I see that einstein1410 made a couple of rather aggressive posts 11 hours ago that haven't made it to my email, so maybe he did manage to get himself ba

Re: learning and experimenting python.

2017-01-01 Thread Ian Kelly
On Mon, Jan 2, 2017 at 12:15 AM, Ian Kelly wrote: > Since they're unlikely to do that however, Then again, I see that einstein1410 made a couple of rather aggressive posts 11 hours ago that haven't made it to my email, so maybe he did manage to get himself banned. -- https://mail.python.org/mail

Re: learning and experimenting python.

2017-01-01 Thread Ian Kelly
On Sun, Jan 1, 2017 at 11:30 AM, Grant Edwards wrote: > On 2016-12-31, Ian Kelly wrote: >> On Dec 31, 2016 3:12 AM, wrote: >> >> That's true. >> >> Please include quoted context in your replies. I have no idea who or what >> you're responding to. > > I'd just like to thank everybody for replying

Re: learning and experimenting python.

2017-01-01 Thread Wildman via Python-list
On Sun, 01 Jan 2017 10:41:22 -0800, einstein1410 wrote: > What contribution I had made especially valuable? Ask your mommy what sarcasm means. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: New re feature in 3.6: local flags and example use

2017-01-01 Thread Ian Kelly
On Sun, Jan 1, 2017 at 8:25 PM, Terry Reedy wrote: \> 3.6 added syntax for 'local flags'. > ''' > (?imsx-imsx:...) > > (Zero or more letters from the set 'i', 'm', 's', 'x', optionally > followed by '-' followed by one or more letters from the same set.) The > letters set or removes the corres

RE: Cleaning up conditionals

2017-01-01 Thread Deborah Swanson
Dennis Lee Bieber wrote, on Sunday, January 01, 2017 6:07 PM > > On Sun, 1 Jan 2017 15:50:25 -0800, "Deborah Swanson" > declaimed the following: > > >Maybe it would help if I give a couple rows of (made up) > data to show > >what I mean (first row is field titles): > > > >..Description

New re feature in 3.6: local flags and example use

2017-01-01 Thread Terry Reedy
The re module defines several flags that affect the compilation of a pattern string. For instance, re.I == re.IGNORECASE results in case-insensitive matching. But what if you want part of a pattern to be case sensitive and part not? For instance, the IDLE colorizer needs to match keywords an

Re: Cleaning up conditionals

2017-01-01 Thread BartC
On 01/01/2017 14:32, Rustom Mody wrote: On Sunday, January 1, 2017 at 7:51:12 PM UTC+5:30, Rustom Mody wrote: On Sunday, January 1, 2017 at 3:39:14 PM UTC+5:30, Deborah Swanson wrote: Sorry guys. I've read all your responses and I kind of get their general drift, but I'm about four sheets to th

Re: Cleaning up conditionals

2017-01-01 Thread Gregory Ewing
On Sat, 31 Dec 2016 14:35:46 -0800, "Deborah Swanson" declaimed the following: if len(l1[v]) == 0 and len(l2[v]) != 0: l1[v] = l2[v] elif len(l2[v]) == 0 and len(l1[v]) != 0: l2[v] = l1[v] elif l1[v] != l2[v]: ret += ", " + labels[v] + " diff" if

RE: Cleaning up conditionals

2017-01-01 Thread Deborah Swanson
> -Original Message- > From: Python-list > [mailto:python-list-bounces+python=deborahswanson.net@python.o > rg] On Behalf Of Jussi Piitulainen > Sent: Saturday, December 31, 2016 11:45 PM > To: python-list@python.org > Subject: Re: Cleaning up conditionals > Importance: High > > > Debo

RE: Cleaning up conditionals

2017-01-01 Thread Deborah Swanson
Chris Angelico wrote on Saturday, December 31, 2016 9:39 PM > > On Sun, Jan 1, 2017 at 2:58 PM, Deborah Swanson > wrote: > > I'm not sure I understand what you did here, at least not > well enough > > to try it. > > > > What conditional can I do between the 2 rows of listings (the list > > na

RE: Cleaning up conditionals

2017-01-01 Thread Deborah Swanson
Steve D'Aprano wrote > Sent: Saturday, December 31, 2016 10:25 PM > > On Sun, 1 Jan 2017 02:58 pm, Deborah Swanson wrote: > > >> It's possible to select either l1 or l2 using an > expression, and then > >> subscript that with [v]. However, this does not usually make for > >> readable code, so

Re: learning and experimenting python.

2017-01-01 Thread Grant Edwards
On 2016-12-31, Ian Kelly wrote: > On Dec 31, 2016 3:12 AM, wrote: > > That's true. > > Please include quoted context in your replies. I have no idea who or what > you're responding to. I'd just like to thank everybody for replying to einstein1410's posts so that those of us who have plonked post

Re: Cleaning up conditionals

2017-01-01 Thread Rustom Mody
On Sunday, January 1, 2017 at 7:51:12 PM UTC+5:30, Rustom Mody wrote: > On Sunday, January 1, 2017 at 3:39:14 PM UTC+5:30, Deborah Swanson wrote: > > Sorry guys. I've read all your responses and I kind of get their general > > drift, but I'm about four sheets to the wind right now, and no way would

Re: Cleaning up conditionals

2017-01-01 Thread Rustom Mody
On Sunday, January 1, 2017 at 3:39:14 PM UTC+5:30, Deborah Swanson wrote: > Sorry guys. I've read all your responses and I kind of get their general > drift, but I'm about four sheets to the wind right now, and no way would > I make it more than a step or two in playing around with these things > a

RE: Cleaning up conditionals

2017-01-01 Thread Deborah Swanson
Sorry guys. I've read all your responses and I kind of get their general drift, but I'm about four sheets to the wind right now, and no way would I make it more than a step or two in playing around with these things and trying to get my head around them before it would all descend into a cacaphony

Re: Cleaning up conditionals

2017-01-01 Thread Jussi Piitulainen
Steve D'Aprano writes: > On Sun, 1 Jan 2017 02:58 pm, Deborah Swanson wrote: > >>> It's possible to select either l1 or l2 using an expression, >>> and then subscript that with [v]. However, this does not >>> usually make for readable code, so I don't recommend it. >>> >>> (l1 if whatever else l2