Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread Chris Angelico
On Sat, Feb 1, 2020 at 4:17 PM DL Neil via Python-list wrote: > > On 31/01/20 9:53 PM, R.Wieser wrote: > >> Using ctrl+c is a VERY BAD idea. > > > > To have it just exit the program ? Yes, indeed. > > > > Though you /could/ keep track of what needs to be finished and have the > > ctrl-c handler d

Re: data sequencing

2020-02-01 Thread DL Neil via Python-list
On 1/02/20 7:19 PM, khisho...@gmail.com wrote: I have a data sequence of around 30 sets. I need to batch the sequence into an input-output format. for example data= [1,2,3,4,5,6,7,8,9,10,..,100] X1= [1,2,3,4,5,6,7,8,9,10] y1 = [11,12] X2= [3,4,5,6,7,8,9,11,12] y2 = [13,14] and it

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread Peter J. Holzer
On 2020-01-30 07:56:30 +1100, Chris Angelico wrote: > On Thu, Jan 30, 2020 at 7:49 AM MRAB wrote: > > On 2020-01-29 20:00, jkn wrote: > > > I could have a file with all the URLs listed and work through each line > > > in turn. > > > But then I would have to rewrite the file (say, with the > > >

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread R.Wieser
DL, >> While I agree with you there, I've been searching for other ways to >> detect a >> keypress (in a console-based script) and have found none. > > Color me disappointed! I was disapponted too, but realized that being able to just capture any keypress (how does the 'puter know the sc

Pyqt5 help

2020-02-01 Thread Souvik Dutta
I was making a pyqt5 project and I ran into a problem. I want a button in one window to add a label in another window when clicked upon. But that is not happening. Now the no. Of labels depend upon something, so I decided to use a for loop which is not working. Attaching the code below. Can you hel

Re: Pyqt5 help

2020-02-01 Thread Barry Scott
> On 1 Feb 2020, at 12:06, Souvik Dutta wrote: > > I was making a pyqt5 project and I ran into a problem. I want a button in > one window to add a label in another window when clicked upon. But that is > not happening. Now the no. Of labels depend upon something, so I decided to > use a for lo

Re: Calculator

2020-02-01 Thread Marek Mosiewicz
Considering just basic calculator with eval it could be possible search eval string if it only contains digits, parenthensis and operators. Assuring no letter (maybe except e for expotential) and special characters this calculator should be quite safe. But I give no any warranty for such security.

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread DL Neil via Python-list
On 2/02/20 1:00 AM, R.Wieser wrote: As sent to the OP. I appreciate these discussions, in the expectation of learning something-new. (and with rust-removal paints at the ready!) Indeed. Even if its just a different POV which makes you rethink the reasons of your own one. +1 -- Regards =dn