[Tutor] Re Module

2018-12-27 Thread Asad
Hi All , I trying find a solution for my script , I have two files : file1 - I need a search a error say x if the error matches Look for the same error x in other file 2 Here is the code : I have 10 different patterns therefore I used list comprehension and compiling the pattern so I

Re: [Tutor] decomposing a problem

2018-12-27 Thread Mark Lawrence
On 26/12/2018 00:00, Avi Gross wrote: [Long enough that some should neither read nor comment on.] PLEASE GO AWAY YOU ARE REALLY IRRITATING. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] look back comprehensively

2018-12-27 Thread Mark Lawrence
On 25/12/2018 00:45, Avi Gross wrote: Please go away as you are so boring :-( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] decomposing a problem

2018-12-27 Thread Avi Gross
[Mark Lawrence please press DELETE now in case the rest of this message is all about you.] [[If that is not working, if on Windows, try Control-ALT-DELETE as that will really get rid of my message.]] Back to replying to Steven, Of course I want to be corrected when wrong. I think everyone here

Re: [Tutor] dangerous class neighborhood

2018-12-27 Thread Avi Gross
My apologies. This reply went to the wrong forum. Hopefully it contains little to be debated. An even shorter version would be: If at first you don't succeed ... -Original Message- From: Tutor On Behalf Of Avi Gross Sent: Thursday, December 27, 2018 9:48 PM To: tutor@python.org

Re: [Tutor] decomposing a problem

2018-12-27 Thread Steven D'Aprano
On Wed, Dec 26, 2018 at 11:02:07AM -0500, Avi Gross wrote: > I often find that I try to make a main point ad people then focus on > something else, like an example. I can't speak for others, but for me, that could be because of a number of reasons: - I agree with what you say, but don't feel

Re: [Tutor] dangerous class neighborhood

2018-12-27 Thread Steven D'Aprano
On Thu, Dec 27, 2018 at 09:48:02PM -0500, Avi Gross wrote: > Sometimes when I post something I get back comments and evaluate them and > learn quite a bit. I then reply and debate every little point and it can > continue for a few rounds. I think you sent this to the wrong mailing list. The

[Tutor] Interpreter pasting Question

2018-12-27 Thread Avi Gross
This is a serious question. I have tried things and searched and remain stumped. It is about python and perhaps just the interpreter. Copying and pasting multiple lines into the interpreter fails in mysterious ways, unless they are a logical single entity. Is there a way to change this

Re: [Tutor] Re Module

2018-12-27 Thread Alan Gauld via Tutor
On 27/12/2018 15:10, Asad wrote: > file1 - I need a search a error say x if the error matches > > Look for the same error x in other file 2 > > Here is the code : > I have 10 different patterns therefore I used list comprehension and > compiling the pattern so I loop over and find the exact

Re: [Tutor] Re Module

2018-12-27 Thread Avi Gross
Asad, After reading replies to you by Alan and Steven I want to ask you if you can first tell us in normal words what the exact outline of the program does. If you only want help on one small part, tell us about that. I was first fooled into thinking you wanted to show us how you solve the

Re: [Tutor] decomposing a problem

2018-12-27 Thread Steven D'Aprano
On Thu, Dec 27, 2018 at 07:03:18PM +, Mark Lawrence wrote: > On 26/12/2018 00:00, Avi Gross wrote: > >[Long enough that some should neither read nor comment on.] > > > > PLEASE GO AWAY YOU ARE REALLY IRRITATING. People in glass houses... Mark, you're not the arbiter of who is allowed to

Re: [Tutor] dangerous class neighborhood

2018-12-27 Thread Avi Gross
Sometimes when I post something I get back comments and evaluate them and learn quite a bit. I then reply and debate every little point and it can continue for a few rounds. I don't seem to be in that mood today so let me simply restate my entire post in a few sentences with no examples, no

Re: [Tutor] Re Module

2018-12-27 Thread Steven D'Aprano
On Thu, Dec 27, 2018 at 08:40:12PM +0530, Asad wrote: > Hi All , > > I trying find a solution for my script , I have two files : > > file1 - I need a search a error say x if the error matches > > Look for the same error x in other file 2 > > Here is the code : > I have 10 different

Re: [Tutor] Interpreter pasting Question

2018-12-27 Thread Steven D'Aprano
On Fri, Dec 28, 2018 at 12:58:00AM -0500, Avi Gross wrote: [...] > Copying and pasting multiple lines into the interpreter fails in mysterious > ways, unless they are a logical single entity. > > Is there a way to change this behavior, or perhaps an editor/environment > that feeds multiple lines