Definitive guide for Regex

2021-09-30 Thread Shaozhong SHI
Dear All, I am trying to look for a definitive guide for Regex in Python. Can anyone help? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

python.exe - System Error

2021-09-30 Thread jitendrabeura001
Hello Sir/Madam, please help me to out from this difficulties, whenever I'm trying to install python idle it is showing me the error called "[1]python.exe - System Error"** I have tried couple of ways to get rid out of this but failed every time, please please help me to find

Re: XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n\r\n\r\n\r\n'

2021-09-30 Thread hongy...@gmail.com
On Thursday, September 30, 2021 at 9:20:37 AM UTC+8, hongy...@gmail.com wrote: > On Thursday, September 30, 2021 at 5:20:04 AM UTC+8, Peter J. Holzer wrote: > > On 2021-09-29 01:22:03 -0700, hongy...@gmail.com wrote: > > > I tried to convert a xls file into csv with the following command, but >

How to pass a method as argument?

2021-09-30 Thread Anil Anvesh
I want to write a python calculator program that has different methods to add, subtract, multiply which takes 2 parameters. I need to have an execute method when passed with 3 parameters, should call respective method and perform the operation. How can I achieve that? class calc(): def __

Re: How to pass a method as argument?

2021-09-30 Thread Edmondo Giovannozzi
Il giorno giovedì 30 settembre 2021 alle 07:11:28 UTC+2 anila...@gmail.com ha scritto: > I want to write a python calculator program that has different methods to > add, subtract, multiply which takes 2 parameters. I need to have an execute > method when passed with 3 parameters, should call res

Re: How to pass a method as argument?

2021-09-30 Thread jitendrabeura001
Please help me to out from this difficulties, whenever I'm trying to install python idle it is showing me the error called "[1]python.exe - System Error"** I have tried couple of ways to get rid out of this but failed every time, please please help me to find the exact soluti

Re: Definitive guide for Regex

2021-09-30 Thread Barry Scott
> On 30 Sep 2021, at 12:29, Shaozhong SHI wrote: > > Dear All, > > I am trying to look for a definitive guide for Regex in Python. > Can anyone help? Have you read the python docs for the re module? Barry > > Regards, > > David > -- > https://mail.python.org/mailman/listinfo/python-list

python.exe - System Error

2021-09-30 Thread jitendrabeura001
please guide me to out from this difficulties, whenever I'm trying to install python idle it is showing me the error called [1]python.exe - System Error I have tried couple of ways to get rid out of this but failed every time, please please help me to find the exact solution for

Re: Definitive guide for Regex

2021-09-30 Thread dn via Python-list
On 01/10/2021 06.16, Barry Scott wrote: > > >> On 30 Sep 2021, at 12:29, Shaozhong SHI wrote: >> >> Dear All, >> >> I am trying to look for a definitive guide for Regex in Python. >> Can anyone help? > > Have you read the python docs for the re module? I learned from Jeffrey Friedl's book "Ma

Re: Definitive guide for Regex

2021-09-30 Thread Barry Scott
> On 30 Sep 2021, at 19:35, dn via Python-list wrote: > > On 01/10/2021 06.16, Barry Scott wrote: >> >> >>> On 30 Sep 2021, at 12:29, Shaozhong SHI wrote: >>> >>> Dear All, >>> >>> I am trying to look for a definitive guide for Regex in Python. >>> Can anyone help? >> >> Have you read th

RE: How to pass a method as argument?

2021-09-30 Thread Avi Gross via Python-list
Sounds like an excellent homework question. But your method of using an object is not what first comes to mind based on your cursory description. There is a python idiom using functional programming that looks like this: def doit(a, b, fun): return(fun(a,b)) So make up your own function

Re: How to pass a method as argument?

2021-09-30 Thread dn via Python-list
On 30/09/2021 18.11, Anil Anvesh wrote: > I want to write a python calculator program that has different methods to > add, subtract, multiply which takes 2 parameters. I need to have an execute > method when passed with 3 parameters, should call respective method and > perform the operation. How

Re: How to pass a method as argument?

2021-09-30 Thread Mats Wichmann
On 9/29/21 23:11, Anil Anvesh wrote: I want to write a python calculator program that has different methods to add, subtract, multiply which takes 2 parameters. I need to have an execute method when passed with 3 parameters, should call respective method and perform the operation. How can I ac

python39.dll not found

2021-09-30 Thread jitendrabeura001
Please someone help me to find the solution for the problem Whenever I am trying to run python idle after installing, it is showing me- [1]python.exe - Syntax Error The code execution cannot proceed because [2]python39.dll was not found. Re-installing the program may fix the probl