Re: Aw: Re: stuck on time

2019-12-08 Thread RobH
On 08/12/2019 22:06, Greg Ewing wrote: On 9/12/19 7:47 am, RobH wrote: I wanted it to work as is, like it did for the author, without changing anything. So why should I now start to learn how python works. There are many, many reasons a piece of code could work in one environment but not ano

Re: Aw: Re: stuck on time

2019-12-08 Thread DL Neil via Python-list
It's a lot like the misuse of the word "theory". You mean to say that in theory there is no difference between theory and practice, but in practice there is? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Aw: Re: stuck on time

2019-12-08 Thread MRAB
On 2019-12-08 20:34, Michael Torrie wrote: On 12/8/19 11:47 AM, RobH wrote: Err, excuse me, I was not attempting to hack into someone else's code. As the code is in the public domain, I wanted it to work as is, like it did for the author, without changing anything. No worries, you're totally

Re: Aw: Re: stuck on time

2019-12-08 Thread Greg Ewing
On 9/12/19 7:47 am, RobH wrote: I wanted it to work as is, like it did for the author, without changing anything. So why should I now start to learn how python works. There are many, many reasons a piece of code could work in one environment but not another. Figuring out why requires actual u

Re: Aw: Re: stuck on time

2019-12-08 Thread Michael Torrie
On 12/8/19 11:47 AM, RobH wrote: > Err, excuse me, I was not attempting to hack into someone else's code. > As the code is in the public domain, I wanted it to work as is, like it > did for the author, without changing anything. No worries, you're totally fine. The word "hack" means something di

Re: Aw: Re: stuck on time

2019-12-08 Thread DL Neil via Python-list
On 9/12/19 7:47 AM, RobH wrote: On 08/12/2019 16:49, Dennis Lee Bieber wrote: On Sun, 8 Dec 2019 09:44:54 +, RobH declaimed the following: def print_time():   current_time = time.strftime("%I:%M") ... I don't know if that is the correct way as I am just using the code from the proje

Re: Aw: Re: stuck on time

2019-12-08 Thread RobH
On 08/12/2019 16:49, Dennis Lee Bieber wrote: On Sun, 8 Dec 2019 09:44:54 +, RobH declaimed the following: def print_time(): current_time = time.strftime("%I:%M") returns nothing. So what did you expect it to do? All that does is define a function (binding the

Re: Aw: Re: stuck on time

2019-12-08 Thread RobH
On 08/12/2019 08:18, Karsten Hilbert wrote: Sorry, I should have said just the line, and it didn't return anything. OK, a bit strange, but then that might be due to Thonny. Is Thonny an interpreter then. It sort of is, or at least it runs one. We'd like to take that out of the equation. I m

Re: Aw: Re: stuck on time

2019-12-08 Thread DL Neil via Python-list
On 8/12/19 9:18 PM, Karsten Hilbert wrote: Sorry, I should have said just the line, and it didn't return anything. OK, a bit strange, but then that might be due to Thonny. Is Thonny an interpreter then. It sort of is, or at least it runs one. We'd like to take that out of the equation. I me