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
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
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
On 9/12/19 7:46 am, Dennis Lee Bieber wrote:
Minecraftia appears to be a monospaced font meant to look like the
character set of old 8-bit gaming systems from the 80s.
From the name, it's probably mean to resemble the font in
Minecraft. As used in the game it's not actually monospaced,
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
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
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
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
On 12/08/2019 06:32 AM, Python wrote:
Well... Maybe it's time to admit, Rob, that programming is not
your thing.
Rob, my apologies. Whoever this person is, they are not "Python", and their
behavior will not be tolerated.
"Python", if you don't want to help then remain silent. If you don't
On 07/12/2019 17:48, RobH wrote:
> I am trying to do this project on a pi zero:
>
> http://frederickvandenbosch.be/?p=1365
>
> After overcoming a few errors, I now have the display working and the
> start of the code showing on the display, that being the time.
>
> It doesn't move on to the next
On 08/12/2019 14:26, Karsten Hilbert wrote:
Like this?
>>>print_time()
Traceback (most recent call last)
File "stdin>", line 1, in
File "stdin>", line 2, in print_time
File "stdin>", line 2, in print_time
File "stdin>", line 2, in print_time
[Previous line repeated 996 more times]
RecursionEr
On Mon, Dec 9, 2019 at 1:56 AM RobH wrote:
> Thanks, but I am only using the code which someone else has written, and
> apparently it works ok for them and others but not for me.
>
> I only came here to find out why, and that is why I posted the link to
> the code, which I thought would be helpful
On 08/12/2019 14:39, Chris Angelico wrote:
On Mon, Dec 9, 2019 at 1:36 AM Python wrote:
RobH wrote:
On 08/12/2019 13:06, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
What happens if you then do
print_time()
print_
On Mon, Dec 9, 2019 at 1:36 AM Python wrote:
>
> RobH wrote:
> > On 08/12/2019 13:06, Karsten Hilbert wrote:
> > In an interactive interpreter:
> >
> > def print_time():
> > current_time = time.strftime("%I:%M")
>
> What happens if you then do
>
> print_ti
RobH wrote:
On 08/12/2019 13:06, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
What happens if you then do
print_time()
print_time()
on it's own returns NameError: name 'print_time' is not defined
Notice the "then" ab
> Like this?
> >>>print_time()
> Traceback (most recent call last)
> File "stdin>", line 1, in
> File "stdin>", line 2, in print_time
> File "stdin>", line 2, in print_time
> File "stdin>", line 2, in print_time
> [Previous line repeated 996 more times]
> RecursionError: maximum recursion depth
On 08/12/2019 13:06, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
What happens if you then do
print_time()
print_time()
on it's own returns NameError: name 'print_time' is not defined
Notice the "then" above ?
Mo
> >> In an interactive interpreter:
> >>
> >> def print_time():
> >> current_time = time.strftime("%I:%M")
> >
> > What happens if you then do
> >
> > print_time()
> >
>
> print_time()
> on it's own returns NameError: name 'print_time' is not defined
Notice the "then" above ?
More precisely:
On 08/12/2019 10:39, Karsten Hilbert wrote:
In an interactive interpreter:
def print_time():
current_time = time.strftime("%I:%M")
returns nothing.
That should be correct.
What happens if you then do
print_time()
inside the interpreter ?
Karsten
print_time()
on it's own return
> In an interactive interpreter:
>
> def print_time():
> current_time = time.strftime("%I:%M")
>
> returns nothing.
That should be correct.
What happens if you then do
print_time()
inside the interpreter ?
Karsten
--
https://mail.python.org/mailman/listinfo/python-list
On 08/12/2019 04:37, Dennis Lee Bieber wrote:
On Sat, 7 Dec 2019 20:38:20 +, RobH declaimed the
following:
What program has or is an interactive interpreter, if it's not Thonny
Thonny is an IDE... It might expose access to the Python interpreter
(I've only loaded it once -- I t
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
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
> 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 meant to run *just* an interpreter, namely,
th
On 12/7/2019 1:56 PM, RobH wrote:
current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
In IDLE on Windows with 3.7 and 3.9, time.strftime runs fine.
>>> import time
>>> time.strftime("%I:%M")
'11:48'
>>> current_time = time.strftime("%I:%
On 07/12/2019 21:22, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 08:38:20PM +, RobH wrote:
I have tried the code in Thonny and ran it
Notice how I said "line", not "code".
If you hope to debug anything you need to be precise.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7
On Sat, Dec 07, 2019 at 08:38:20PM +, RobH wrote:
> I have tried the code in Thonny and ran it
Notice how I said "line", not "code".
If you hope to debug anything you need to be precise.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.org/mailman/l
On 07/12/2019 19:15, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 06:56:17PM +, RobH wrote:
What happens if your run this line:
current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
(after you define "time" appropriately)
On Sat, Dec 07, 2019 at 06:56:17PM +, RobH wrote:
> > What happens if your run this line:
> >
> > > current_time = time.strftime("%I:%M")<<< stays at this line
> >
> > in an interactive Python interpreter ?
> >
> > (after you define "time" appropriately)
>
> The python code is in a t
On 07/12/2019 17:54, Karsten Hilbert wrote:
On Sat, Dec 07, 2019 at 05:48:00PM +, RobH wrote:
What happens if your run this line:
current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
(after you define "time" appropriately)
K
On Sat, Dec 07, 2019 at 05:48:00PM +, RobH wrote:
What happens if your run this line:
> current_time = time.strftime("%I:%M")<<< stays at this line
in an interactive Python interpreter ?
(after you define "time" appropriately)
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3B
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
After overcoming a few errors, I now have the display working and the
start of the code showing on the display, that being the time.
It doesn't move on to the next part of the code ie, no rectangle drawn
def d
32 matches
Mail list logo