Python Stampede Time? – Feb. 18, 2024

2024-02-18 Thread Science Researcher via Python-list
"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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-18 Thread Barry via Python-list
> 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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Greg Ewing via Python-list
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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Mirko via Python-list
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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread 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 API" of gettext installing _() into the builtins namespace

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Dieter Maurer via Python-list
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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Richard Damon via Python-list
> 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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Dieter Maurer via Python-list
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

Re: GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread Mirko via Python-list
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

GNU gettext: Print string translated and untranslated at the same time

2023-08-17 Thread c.buhtz--- via Python-list
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

Re: Standard class for time *period*?

2023-03-29 Thread Cameron Simpson
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

Re: Standard class for time *period*?

2023-03-29 Thread Cameron Simpson
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

Re: Standard class for time *period*?

2023-03-29 Thread Thomas Passin
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.

Re: Standard class for time *period*?

2023-03-29 Thread Loris Bennett
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

Re: Standard class for time *period*?

2023-03-28 Thread Cameron Simpson
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

Re: Standard class for time *period*?

2023-03-28 Thread dn via Python-list
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

Re: Standard class for time *period*?

2023-03-28 Thread Grant Edwards
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).

Re: Standard class for time *period*?

2023-03-28 Thread Thomas Passin
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

Re: Standard class for time *period*?

2023-03-28 Thread Grant Edwards
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

Aw: Re: Standard class for time *period*?

2023-03-28 Thread Karsten Hilbert
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

Re: Standard class for time *period*?

2023-03-28 Thread rbowman
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

Re: Standard class for time *period*?

2023-03-28 Thread Dennis Lee Bieber
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

Re: Standard class for time *period*?

2023-03-28 Thread Loris Bennett
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

Re: Standard class for time *period*?

2023-03-28 Thread Loris Bennett
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

Re: Standard class for time *period*?

2023-03-27 Thread Thomas Passin
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

Re: Standard class for time *period*?

2023-03-27 Thread Gary Herron
, 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

Re: Standard class for time *period*?

2023-03-27 Thread rbowman
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

Re: Standard class for time *period*?

2023-03-27 Thread Loris Bennett
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

Standard class for time *period*?

2023-03-27 Thread Loris Bennett
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

Re: Evaluate once or every time

2023-02-24 Thread Thomas Passin
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

Re: Evaluate once or every time

2023-02-24 Thread 2QdxY4RzWzUUiLuE
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

Re: Evaluate once or every time

2023-02-24 Thread Thomas Passin
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

Re: Evaluate once or every time

2023-02-24 Thread Chris Angelico
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

Evaluate once or every time

2023-02-24 Thread avi.e.gross
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

How to create forecast lead time with python?

2022-10-07 Thread Dioumacor FAYE
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, -

Re: Python LSTM forecast future values for time series

2022-02-12 Thread Cousin Stanley
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

Python LSTM forecast future values for time series

2022-02-10 Thread Jorge Conforte
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

Re: Create a real-time interactive TUI using Python.

2021-09-01 Thread Gisle Vanem
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

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread Christian Gollwitzer
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

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread hongy...@gmail.com
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. > > > > [

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread Dennis Lee Bieber
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

Re: Create a real-time interactive TUI using Python.

2021-08-31 Thread 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. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Create a real-time interactive TUI using Python.

2021-08-31 Thread hongy...@gmail.com
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

Re: TIME IN XARRAY

2021-04-18 Thread Gys
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',    '

Re: TIME IN XARRAY

2021-04-16 Thread Peter Otten
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', &#

Re: TIME IN XARRAY

2021-04-15 Thread Chris Angelico
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.

TIME IN XARRAY

2021-04-15 Thread Jorge Conforte
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', ..., &

Re: Time Date Conversion?

2020-11-04 Thread Cameron Simpson
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

Re: Time Date Conversion?

2020-11-04 Thread MRAB
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

Re: Time Date Conversion?

2020-11-04 Thread Larry Martell
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

Time Date Conversion?

2020-11-04 Thread Steve
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()

Re: Why is Python deleting every time

2020-10-01 Thread Terry Reedy
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

Why is Python deleting every time

2020-10-01 Thread Sai Shubham Ray
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

Re: problem at the time of using editor

2020-06-18 Thread DL Neil via 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

Re: problem at the time of using editor

2020-06-18 Thread Grant Edwards
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

Re: problem at the time of using editor

2020-06-18 Thread Terry Reedy
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

Re: problem at the time of using editor

2020-06-18 Thread Mats Wichmann
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

problem at the time of using editor

2020-06-18 Thread Sourav Kundu
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

yolov3 Real Time Object Detection in tensorflow 2.2

2020-05-26 Thread Emad Boctor
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

Re: Helping Windows first time users

2020-04-19 Thread boB Stepp
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

Re: Helping Windows first time users

2020-04-19 Thread Pieter van Oostrum
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

Re: Helping Windows first time users

2020-04-19 Thread Barry Scott
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

Re: Helping Windows first time users

2020-04-18 Thread Chris Angelico
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.

Re: Helping Windows first time users

2020-04-18 Thread boB Stepp
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

Re: Helping Windows first time users

2020-04-16 Thread anson freer
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

Re: Helping Windows first time users

2020-04-16 Thread Souvik Dutta
.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

Re: Helping Windows first time users

2020-04-16 Thread Barry Scott
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

Re: Helping Windows first time users

2020-04-16 Thread Barry Scott
>>>> >>>> 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

Re: Helping Windows first time users

2020-04-16 Thread Mike Dewhirst
://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

Re: Helping Windows first time users

2020-04-15 Thread joseph pareti
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

Re: Helping Windows first time users

2020-04-15 Thread DL Neil via Python-list
/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

Re: Helping Windows first time users

2020-04-15 Thread Souvik Dutta
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

Helping Windows first time users

2020-04-15 Thread Barry Scott
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

Re: The Real-Time Use of Python in Data Science World!

2020-03-10 Thread darcosion--- via 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

Re: The Real-Time Use of Python in Data Science World!

2020-03-07 Thread Gene Heskett
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

Re: The Real-Time Use of Python in Data Science World!

2020-03-07 Thread Perri Jones
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

Re: first time python learner

2020-02-14 Thread Terry Reedy
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

Re: first time python learner

2020-02-13 Thread Cameron Simpson
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

first time python learner

2020-02-13 Thread Marty Konopko
Win 10 Anti Virus off [image: image.png] Any idea? -- Martin Konopko -- https://mail.python.org/mailman/listinfo/python-list

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: stuck on time

2019-12-08 Thread Greg Ewing
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,

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
, 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

Re: Aw: Re: stuck on time

2019-12-08 Thread RobH
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...

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread Ethan Furman
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

Re: stuck on time

2019-12-08 Thread duncan smith
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

Re: Aw: Re: Re: Re: Re: stuck on time

2019-12-08 Thread RobH
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

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread Chris Angelico
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

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread RobH
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

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread Chris Angelico
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

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread Python
>", 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

Aw: Re: Re: Re: Re: stuck on time

2019-12-08 Thread Karsten Hilbert
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

Re: Aw: Re: Re: Re: stuck on time

2019-12-08 Thread RobH
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

Aw: Re: Re: Re: stuck on time

2019-12-08 Thread Karsten Hilbert
> >> 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:

Re: Aw: Re: Re: stuck on time

2019-12-08 Thread RobH
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

Aw: Re: Re: stuck on time

2019-12-08 Thread Karsten Hilbert
> 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

Re: stuck on time

2019-12-08 Thread RobH
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   2   3   4   5   6   7   8   9   10   >