"Science Researcher" wrote in message
news:z4acnqbo6mkf9kz4nz2dnzfqn_edn...@earthlink.com...
PROPOSED PYTHON COMPUTER LANGUAGE PROGRAM - Posted on February 17, 2024
PYTHON STAMPEDE TIME ? – Posted on February 18, 2024
Before discussing this specific topic in detail I a
> On 17 Aug 2023, at 15:01, c.buhtz--- via Python-list
> wrote:
>
> I want to display one string in its original source (untranslated) version
> and in its translated version site by site without duplicating the string in
> the python source code?
> It wouldn't be a big deal if it is only on
On 17/08/23 7:10 pm, c.bu...@posteo.jp wrote:
def foobar(translate):
if not translate:
# I try to mask the global _() builtins-function
def _(txt):
return txt
return _('Hello')
This causes _ to become a local that is left undefined on one
branch of the
Am 17.08.23 um 21:17 schrieb c.buhtz--- via Python-list:
Hello Mirko,
thanks for reply.
Am 17.08.2023 18:19 schrieb Mirko via Python-list:
You could solve it by defining _() locally like so:
def foobar(translate):
_ = gettext.gettext
I see no way to do that. It is not the "class based A
Hello Mirko,
thanks for reply.
Am 17.08.2023 18:19 schrieb Mirko via Python-list:
You could solve it by defining _() locally like so:
def foobar(translate):
_ = gettext.gettext
I see no way to do that. It is not the "class based API" of gettext
installing _() into the builtins namespace
c.bu...@posteo.jp wrote at 2023-8-17 07:10 +:
>I want to display one string in its original source (untranslated)
>version and in its translated version site by site without duplicating
>the string in the python source code?
You could try to translate into an unknown language: this
should give
> On Aug 17, 2023, at 10:02 AM, c.buhtz--- via Python-list
> wrote:
>
> X-Post: https://stackoverflow.com/q/76913082/4865723
>
> I want to display one string in its original source (untranslated) version
> and in its translated version site by site without duplicating the string in
> the pyt
c.bu...@posteo.jp wrote at 2023-8-17 07:10 +:
>I want to display one string in its original source (untranslated)
>version and in its translated version site by site without duplicating
>the string in the python source code?
Is it an option for you to replace the `gettext` binding
by `zope.i18
Am 17.08.23 um 09:10 schrieb c.buhtz--- via Python-list:
UnboundLocalError: local variable '_' referenced before assignment
This is a common gotcha:
https://docs.python.org/3/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
You could solve it by
X-Post: https://stackoverflow.com/q/76913082/4865723
I want to display one string in its original source (untranslated)
version and in its translated version site by site without duplicating
the string in the python source code?
It wouldn't be a big deal if it is only one word.
print('The
more complicated use-case could
have already scratched.
Well, my attitude to time spans is to get the start and end (or start
and length, but I prefer the former) as UNIX timestamps and work from
that. I try to stay as far from datetimes as possible, because of their
foibles (particularly time
impson/css/blob/0ade6d191833b87cab8826d7ecaee4d114992c45/lib/python/cs/timeseries.py#L2163
On review it isn't a great match for a simple time range; it's aimed at
expressing the time ranges into which my time series data files are
broken up.
I think most of the code using this particular
ith a more complicated use-case could
have already scratched. After all, that the datetime classes exist,
even though I only use a tiny part of the total functionality.
Cheers,
Loris
Maybe there is - https://github.com/LinkCareServices/period
"Period is a basic time period checking library.
only person to want one. I've got a timeseries data format
> where (within a file) time slots are represented as a seconds offset,
> and the file has an associated epoch starting point. Dual to that is
> that a timeslot has an offset from the file start, and that is
> effecti
hin a file) time slots are represented as a seconds offset,
and the file has an associated epoch starting point. Dual to that is
that a timeslot has an offset from the file start, and that is
effectively a (file-epoch, duration) notion.
I've got plenty of code using that which passes a
1. Is there a standard class for a 'period', i.e. length of time
specified by a start point and an end point? The start and end
points could obviously be datetimes and the difference a timedelta,
but the period '2022-03-01 00:00 to 2022-03-02 00:00' would be
diff
On 2023-03-28, Thomas Passin wrote:
> On 3/28/2023 12:13 PM, Grant Edwards wrote:
>> On 2023-03-28, Dennis Lee Bieber wrote:
>>
>>> So far, you seem to be the only person who has ever asked for a
>>> single entity incorporating an EPOCH (datetime.datetime) + a
>>> DURATION (datetime.timedelta).
On 3/28/2023 12:13 PM, Grant Edwards wrote:
On 2023-03-28, Dennis Lee Bieber wrote:
So far, you seem to be the only person who has ever asked for a
single entity incorporating an EPOCH (datetime.datetime) + a
DURATION (datetime.timedelta).
It seems to me that tuple of two timdate objects (st
On 2023-03-28, Dennis Lee Bieber wrote:
> So far, you seem to be the only person who has ever asked for a
> single entity incorporating an EPOCH (datetime.datetime) + a
> DURATION (datetime.timedelta).
It seems to me that tuple of two timdate objects (start,end) is the
more obvious representatio
a 'period', i.e. length of time
>specified by a start point and an end point? The start and end
>points could obviously be datetimes and the difference a timedelta,
>but the period '2022-03-01 00:00 to 2022-03-02 00:00' would be
>differen
objects and then be able to sort, check for identity, equality of
> length, amount of overlap, etc. I suppose people just use a
> datetime.datetime pair, as I have been doing so far, and tack on just
> the specific bit of functionality they need.
It's called Unix time... Convert
idental to what I am really
>interested in, namely:
>
>1. Is there a standard class for a 'period', i.e. length of time
> specified by a start point and an end point? The start and end
> points could obviously be datetimes and the difference a timedelta,
> but the
Thomas Passin writes:
> On 3/27/2023 11:34 AM, rbowman wrote:
>> On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote:
>>
>>>I need to deal with what I call a 'period', which is a span of time
>>>limited by two dates, start and end. The p
gt;>formatting, which is not a problem and is incidental to what I am really
>>interested in, namely:
>>
>>1. Is there a standard class for a 'period', i.e. length of time
>> specified by a start point and an end point? The start and end
>> points coul
On 3/27/2023 11:34 AM, rbowman wrote:
On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote:
I need to deal with what I call a 'period', which is a span of time
limited by two dates, start and end. The period has a 'duration',
which is the elapsed time between
, loris.benn...@fu-berlin.de wrote:
Hi,
I have been around long enough to know that, due to time-zones, daylight
saving and whatnot, time-related stuff is complicated. So even if I
think something connected with time should exist, there may well be a
very good reason why it does not.
My problem
On Mon, 27 Mar 2023 15:00:52 +0200, Loris Bennett wrote:
> I need to deal with what I call a 'period', which is a span of time
> limited by two dates, start and end. The period has a 'duration',
> which is the elapsed time between start and end. The duratio
r...@zedat.fu-berlin.de (Stefan Ram) writes:
> r...@zedat.fu-berlin.de (Stefan Ram) writes:
>>d = datetime_diff.days
>>h, rem = divmod( datetime_diff.seconds, 3600 )
>>m, s = divmod( rem, 60 )
>>print( f'{d:02}-{h:02}:{m:02}:{s:02}' )
>
> If the default formatting is acceptable to you, you can a
Hi,
I have been around long enough to know that, due to time-zones, daylight
saving and whatnot, time-related stuff is complicated. So even if I
think something connected with time should exist, there may well be a
very good reason why it does not.
My problem:
I need to deal with what I call
On 2/24/2023 7:00 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
On 2023-02-24 at 18:42:39 -0500,
Thomas Passin wrote:
VOWELS = 'aeiouAEIOU'
is_vowel = 'y' in VOWELS
If I really needed them to be in a list, I'd probably do a list
comprehension:
VOWEL_LIST = [ch for ch in VOWELS]
Why use a c
On 2023-02-24 at 18:42:39 -0500,
Thomas Passin wrote:
> VOWELS = 'aeiouAEIOU'
> is_vowel = 'y' in VOWELS
>
> If I really needed them to be in a list, I'd probably do a list
> comprehension:
>
> VOWEL_LIST = [ch for ch in VOWELS]
Why use a comprehension when a simple loop will do? ;-)
No. Wa
thing like a "+" to do the concatenation at each run time.
Or, weirder, do it manually as :
good = "hello ".__add__(str(12))
This may be no big deal in terms of efficiency but something to consider.
I have often stared in amazement at code like:
mylist = "The quic
eral
>
> bad = "hello " str(12)
>
> or you must use something like a "+" to do the concatenation at each run
> time. Or, weirder, do it manually as :
>
Abuttal is a syntactic feature. It's completely different from string
concatenation. The only similarit
adjacent strings is done once
when generating bytecode. Using a plus is supposed to be about the same but may
indeed result in either an error if you use anything other than a string literal
bad = "hello " str(12)
or you must use something like a "+" to do the concatenation a
Hello,
I wanted to create on different days the deadline forecast files (2, 3, 4,
and 5 deadlines). The file is in NetCDF format. The objective is to see
later on these different forecast deadlines which one gives the best score.
If anyone can help me to do?
--
Bien à vous,
-
Jorge Conforte wrote:
>
> I'm starting run the LSTM to forecast future values for time serie data.
>
> please can someone give me some information
> on how i can predict future values
> for my time series using LSTM. Thanks, Conrado
I cannot personlly help but
HI,
I'm starting run the LSTM to forecast future values for time serie data.
please can someone give me some information on how i can predict future
values for my time series using LSTM. Thanks, Conrado
--
https://mail.python.org/mailman/listinfo/python-list
hongy...@gmail.com wrote:
The following are some python TUI framework libraries/projects I have
discovered so far:
https://github.com/pfalcon/picotui
https://github.com/peterbrittain/asciimatics
https://github.com/bczsalba/pytermgui
https://github.com/GeorgeFilipkin/pulsemixer
https://github.c
Am 31.08.21 um 18:49 schrieb Chris Angelico:
On Wed, Sep 1, 2021 at 1:59 AM hongy...@gmail.com wrote:
I want to know whether python can be used to create real-time interactive TUI,
as hstr [1] does.
[1] https://github.com/dvorka/hstr
Yes.
I think he also would like to know, how to
On Wednesday, September 1, 2021 at 12:49:51 AM UTC+8, Chris Angelico wrote:
> On Wed, Sep 1, 2021 at 1:59 AM hongy...@gmail.com wrote:
> >
> > I want to know whether python can be used to create real-time interactive
> > TUI, as hstr [1] does.
> >
> > [
On Tue, 31 Aug 2021 06:12:42 -0700 (PDT), "hongy...@gmail.com"
declaimed the following:
>I want to know whether python can be used to create real-time interactive TUI,
>as hstr [1] does.
>
Most of these utilities appear to rely upon embedding commands into the
O
On Wed, Sep 1, 2021 at 1:59 AM hongy...@gmail.com wrote:
>
> I want to know whether python can be used to create real-time interactive
> TUI, as hstr [1] does.
>
> [1] https://github.com/dvorka/hstr
>
Yes.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
I want to know whether python can be used to create real-time interactive TUI,
as hstr [1] does.
[1] https://github.com/dvorka/hstr
Regards,
HY
--
https://mail.python.org/mailman/listinfo/python-list
On 4/15/21 7:58 PM, Jorge Conforte wrote:
Hi,
I'm using xarray to read netcdf data and I had to time in my data the
values:
xarray.DataArray 'time' (time: 507)>
array(['1979-01-01T00:00:00.0', '1979-02-01T00:00:00.0',
'
On 15/04/2021 20:20, Chris Angelico wrote:
On Fri, Apr 16, 2021 at 4:16 AM Jorge Conforte wrote:
I'm using xarray to read netcdf data and I had to time in my data the
values:
xarray.DataArray 'time' (time: 507)>
array(['1979-01-01T00:00:00.0',
On Fri, Apr 16, 2021 at 4:16 AM Jorge Conforte wrote:
> I'm using xarray to read netcdf data and I had to time in my data the
> values:
>
> xarray.DataArray 'time' (time: 507)>
> array(['1979-01-01T00:00:00.0', '1979-02-01T00:00:00.
Hi,
I'm using xarray to read netcdf data and I had to time in my data the
values:
xarray.DataArray 'time' (time: 507)>
array(['1979-01-01T00:00:00.0', '1979-02-01T00:00:00.0',
'1979-03-01T00:00:00.0', ...,
&
strftime, which read ("parse") a
string for date information and write ("format") a string for
presentation. The intermediate form is usually either a timestamp (an
offset from some point in time, in seconds) or a datetime object (see
the datetime module).
I'd also point
On 2020-11-04 23:02, Steve wrote:
The text File entry is:
BPd 2020-11-04 17:28:03.352027 66
I bring it into the program using:
with open("_TIME-DATE.txt" , 'r') as infile:
for lineEQN in infile: # loop to find each line in the file for that
dose
and set it in a variable as follows:
It
On Wed, Nov 4, 2020 at 6:21 PM Steve wrote:
>
> The text File entry is:
>BPd 2020-11-04 17:28:03.352027 66
>
> I bring it into the program using:
> with open("_TIME-DATE.txt" , 'r') as infile:
> for lineEQN in infile: # loop to find each line in the file for that
> dose
> and set it in a
The text File entry is:
BPd 2020-11-04 17:28:03.352027 66
I bring it into the program using:
with open("_TIME-DATE.txt" , 'r') as infile:
for lineEQN in infile: # loop to find each line in the file for that
dose
and set it in a variable as follows:
ItemDateTime = lineEQN[7:36].strip()
On 10/1/2020 7:29 AM, Sai Shubham Ray wrote:
Sometimes when I try to run python program it says that python is not
installed and I have to repair it.
Because you are running the Python installer instead of Python itself
after having it installed.
Thank god there is a repair option in
python
Sometimes when I try to run python program it says that python is not
installed and I have to repair it. Thank god there is a repair option in
python but still do something to get rid of this problem
Regards
Sai Shubham Ray
--
https://mail.python.org/mailman/listinfo/python-list
On 18/06/20 10:20 PM, Sourav Kundu wrote:
when I am using the editor to write a long program and trying to run it the
python command line showing it syntax error
Of possible interest:-
Why SuperHELP for Python? | pssst
Search domain
p-s.co.nz/wordpress/why-superhelp-for-python/p-s.co.nz/wordpr
On 2020-06-18, Sourav Kundu wrote:
> when I am using the editor to write a long program and trying to run
> it the python command line showing it syntax error
Fix the syntax error using the editor, then run the program again.
--
https://mail.python.org/mailman/listinfo/python-list
On 6/18/2020 6:20 AM, Sourav Kundu wrote:
when I am using the editor to write a long program and trying to run it the
python command line showing it syntax error
That happens to all of us, even for short programs.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list
rror text.
Note: for certain syntax errors, the error began previously, and the
line where the error is reported is the first time you can be sure there
actually was an error. Consider:
print("This is a problem"
x = 12
The closing paren on the function call print() was omitted. This wi
when I am using the editor to write a long program and trying to run it the
python command line showing it syntax error
--
https://mail.python.org/mailman/listinfo/python-list
Hello, I would like to share with you my implementation of yolov3 object
detector in tensorflow 2.2 https://github.com/emadboctorx/yolov3-keras-tf2
Features
tensorflow-2.X--keras-functional-api
cpu-gpu support
Random weights and DarkNet weights support
csv-xml annotation parsers.
Anchor gen
On Sun, Apr 19, 2020 at 4:30 AM Barry Scott wrote:
>
>
>
> > On 18 Apr 2020, at 21:00, boB Stepp wrote:
> >
> > On Wed, Apr 15, 2020 at 2:04 PM Barry Scott wrote:
> >> What are your thoughts on the installer changes and reply text?
> >
> > I wonder if the last screen of the installer should hav
t/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
>>
>> It also seems like we could do with drafting the text of a helpful
>> reply to help the Windows first time users. This would help folks that
>> reply to the Windows first time users to have a quick way to reply
>> wi
g/archives/list/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
>>
>> It also seems like we could do with drafting the text of a helpful
>> reply to help the Windows first time users. This would help folks that
>> reply to the Windows first time users to
On Sun, Apr 19, 2020 at 6:02 AM boB Stepp wrote:
> I wonder if the last screen of the installer should have a checkbox,
> checked by default, that launches IDLE. IDLE would then display a
> helpful text file on this first launch describing how to use IDLE, how
> to find and launch it again, etc.
t;
> It also seems like we could do with drafting the text of a helpful
> reply to help the Windows first time users. This would help folks that
> reply to the Windows first time users to have a quick way to reply
> without drafting the text a reply every time.
>
> What are your t
following:
> > >
> > >> I post some suggestion to improve the Python installer for Windows
> > >> to better sign post users on the next steps.
> > >>
> > >>
> >
> https://mail.python.org/archives/list/python-id...@python.org/messag
.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
> >>
> >> It also seems like we could do with drafting the text of a helpful
> >> reply to help the Windows first time users. This would help folks that
> >> reply to the Windows first time users to have a quick way to
t;> https://mail.python.org/archives/list/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
>>
>> It also seems like we could do with drafting the text of a helpful
>> reply to help the Windows first time users. This would help folks that
>> reply to the W
>>>>
>>>> It also seems like we could do with drafting the text of a helpful
>>>> reply to help the Windows first time users. This would help folks that
>>>> reply to the Windows first time users to have a quick way to reply
>>>> without dra
://mail.python.org/archives/list/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
It also seems like we could do with drafting the text of a helpful
reply to help the Windows first time users. This would help folks that
reply to the Windows first time users to have a quick way to
do with drafting the text of a helpful
> reply to help the Windows first time users. This would help folks that
> reply to the Windows first time users to have a quick way to reply
> without drafting the text a reply every time.
>
> What are your thoughts on the installer chan
/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
It also seems like we could do with drafting the text of a helpful
reply to help the Windows first time users. This would help folks that
reply to the Windows first time users to have a quick way to reply
without drafting the text a reply every time.
What
ows
> to better sign post users on the next steps.
>
>
> https://mail.python.org/archives/list/python-id...@python.org/message/TKHID7PMKN5TK5QDQ2BL3G45FYAJNYJX/
>
> It also seems like we could do with drafting the text of a helpful
> reply to help the Windows first time users. Th
the Windows first time users. This would help folks that
reply to the Windows first time users to have a quick way to reply
without drafting the text a reply every time.
What are your thoughts on the installer changes and reply text?
Barry
--
https://mail.python.org/mailman/listinfo/python-list
Why they are ads on this mailing list ?
‐‐‐ Original Message ‐‐‐
Le samedi 7 mars 2020 06:39, a écrit :
> Besant Technologies providing Python Training in Chennai with expert guidance
> and fully hands-on classes. Python is a high-level programming language
> sometimes it also denoted
41...@gmail.com
> Sent: Saturday, March 7, 2020 12:39 AM
> To: python-announce-l...@python.org
> Subject: Re: The Real-Time Use of Python in Data Science World!
>
> Besant Technologies providing Python Training in Chennai with expert
> guidance and fully hands-on classes. Pyt
Is this training that someone can sign up for, and if so, how do you sign up.
From: priyasudha041...@gmail.com
Sent: Saturday, March 7, 2020 12:39 AM
To: python-announce-l...@python.org
Subject: Re: The Real-Time Use of Python in Data Science World!
Besant
On 2/13/2020 11:38 PM, Marty Konopko wrote:
Win 10
Anti Virus off
[image: image.png]
Any idea?
Cameron already suggested a better title and question. If it is about
IDLE startup, read
https://docs.python.org/3/library/idle.html#startup-failure
--
Terry Jan Reedy
--
https://mail.python.o
On 13Feb2020 21:38, Marty Konopko wrote:
Win 10
Anti Virus off
[image: image.png]
Any idea?
Alas, this is a text only list; your screenshot has been discarded.
Please reply with your complete error message cut/paste into the text.
And a description of what you were trying to do.
Thanks
Win 10
Anti Virus off
[image: image.png]
Any idea?
--
Martin Konopko
--
https://mail.python.org/mailman/listinfo/python-list
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
, as per @wlfraed's detailed
analysis of the code-base's short-comings, a few hours ago.
So why should I now start to learn how python works.
Only you can answer this: is the effort required to bend the code to
your will, worth the pleasure or utility the result will bring?
Alterna
n (binding the name "print_time" to a
compiled function object), and that function itself returns nothing IF
invoked (you haven't invoked it). (Presuming time has been imported, the
function will bind the name "current_time" to a string representation of
the current time...
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 the
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.
>
> I
s.
However,
Running the code in a shell , it is displaying the time and now also the date .
That would prove that the code itself is not
the reason why it hangs where you think it
hangs.
I suggest sprinkling print statements about the initial code
and see what it prints to the console to f
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
e()
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 rec
ou mean.
> >
> > 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
> &g
>", 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 excedded.
Running the code in a shell , it is displaying the time and now also t
t; [Previous line repeated 996 more times]
> RecursionError: maximum recursion depth excedded.
Sort of, yes, but since you meanwhile redeclared the function:
def print_time():
print_time()
to be recursive and then you ran that recursive function
it recursed until it ran out of resource
ot;, 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 excedded.
Running the code in a shell , it is displaying the time and now also the
date .
Nothing else tho', as in no rectangle drawn
--
https://mail.python.org/mailman/listinfo/python-list
> >> 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
id when you fail to provide complete examples
of the problem.
def display_time():
# Collect current time and date
if(time_format):
current_time = time.strftime("%I:%M")<<< stays at this line
else:
current_time = time.st
1 - 100 of 3548 matches
Mail list logo