QTableWidget help!!

2020-01-30 Thread Souvik Dutta
Hi, I want to add a QTableWidget to an existing window with other labels and button. How can I add the QTableWidget without having to set it as centralwidget and be able to move it and set geometry. Because I am not being able to move the central widget by using self.centralwidget.setGeometry . The

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

2020-01-30 Thread DL Neil via Python-list
On 30/01/20 9:35 PM, R.Wieser wrote: MRAB's scheme does have the disadvantages to me that Chris has pointed out. Nothing that can't be countered by keeping copies of the last X number of to-be-dowloaded-URLs files. That's a good idea, but how would the automated system 'know' to give-up on th

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

2020-01-30 Thread jkn
Err, well, thanks for that discussion gents... As it happens I do know how to use a database, but I regard it as overkill for what I am trying to do here. I think a combination of hashing the URL, and using a suffix to indicate the result of previous downloaded attempts, will work adequately for m

Using Python and scikitlearn, is there a way to return the "feature dependency" percentage?

2020-01-30 Thread gratefuldeadbertha
Hello, I am relatively new to Python and Machine Learning. I have a basic dataset for insurance fraud and a script that generates the model and runs the predictions. I am able to output the accuracy percentages, but I would like to also output the feature dependencies: For example, what role did

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

2020-01-30 Thread Chris Angelico
On Fri, Jan 31, 2020 at 4:11 AM R.Wieser wrote: > But, do you remember what the OP said ? > [quote] > want to download these as a 'background task'. ... you can CTRL-C out, > [/quote] > > Why now do I think that, when such a backgroud process is forgotten and the > 'puter switched off, the file, d

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

2020-01-30 Thread R.Wieser
Chris, > Yes, and then you backpedalled furiously when I showed that > proper transactions prevent this. You're a fool, out for a fight. /You/ might know exactly how to handle a database to make sure its /transactions/ will not leave the database in a corrupt state, but as I mentioned a few po

Re: Help on PyQt5 !!

2020-01-30 Thread Michael Torrie
On 1/30/20 4:38 AM, Souvik Dutta wrote: > Hey guys. I might be asking the most childish question. I have a window in > pyqt5 (a file in python). Let's call it win1. > I have another pyqt5 (another file in python). Let's call it win2. Now win2 > is called when add button in win1 is clicked. So far n

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

2020-01-30 Thread Chris Angelico
On Fri, Jan 31, 2020 at 2:01 AM R.Wieser wrote: > > Chris, > > >> I think that a database is /definitily/ overcomplicating stuff, > > > > Okay, sure... but you didn't say that. > > I'm sorry ? In my first reply I described a file-based approach and > mentioned that the folder approach is a rathe

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

2020-01-30 Thread R.Wieser
Chris, >> I think that a database is /definitily/ overcomplicating stuff, > > Okay, sure... but you didn't say that. I'm sorry ? In my first reply I described a file-based approach and mentioned that the folder approach is a rather good one. What do you think I ment there ? > You said that

ANN: Wing Python IDE 7.2.1.0 released

2020-01-30 Thread Wingware
Wing 7.2.1 has been released. This update fixes debug process group termination, avoids failures seen when pasting some Python code, prevents crashing in vi browse mode when the first line of the file is blank, and fixes some other usability issues. For details see the change log: https://wi

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

2020-01-30 Thread Dan Sommers
On Thu, 30 Jan 2020 23:34:59 +1100 Chris Angelico wrote: > ... I wasn't advocating for the use of a database; my first and > strongest recommendation was, and still is, a stateless system wherein > the files themselves are the entire indication of which documents have > been downloaded. Yes, I l

Re: Was: Dynamic Data type assignment

2020-01-30 Thread Dan Sommers
On Thu, 30 Jan 2020 20:40:50 +1300 DL Neil via Python-list wrote: > Why do we have [argparse] at the cmdLN and yet not have something > similar for input? Because argparse works on input, too? Many examples on https://docs.python.org/3/library/argparse.html¹ explicitly pass a list of strings to

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

2020-01-30 Thread Chris Angelico
On Thu, Jan 30, 2020 at 11:11 PM R.Wieser wrote: > > Chris, > > > That's what transactions are for. > > Again, > > >> I guess that that went right over your head. :-)/You/ might know > >> exactly > >> what should and shouldn't be done, what makes you think the OP currently > >> does ? > > > I

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

2020-01-30 Thread R.Wieser
Chris, > That's what transactions are for. Again, >> I guess that that went right over your head. :-)/You/ might know >> exactly >> what should and shouldn't be done, what makes you think the OP currently >> does ? > I don't understand why you're denigrating databases, Am I denigrating a

Help on PyQt5 !!

2020-01-30 Thread Souvik Dutta
Hey guys. I might be asking the most childish question. I have a window in pyqt5 (a file in python). Let's call it win1. I have another pyqt5 (another file in python). Let's call it win2. Now win2 is called when add button in win1 is clicked. So far no problem. But win2 has another button called sa

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

2020-01-30 Thread Chris Angelico
On Thu, Jan 30, 2020 at 8:36 PM R.Wieser wrote: > > Chris, > > > Uhh > > > > Proper databases don't HAVE non-atomic operations. That's kinda their job. > > Uhh... yes, /singular/ operations are considered to be atomic. A series of > operations /ment/ to be executed as a single one on the oth

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

2020-01-30 Thread R.Wieser
Chris, > Uhh > > Proper databases don't HAVE non-atomic operations. That's kinda their job. Uhh... yes, /singular/ operations are considered to be atomic. A series of operations /ment/ to be executed as a single one on the other hand aren't. > Unless you mean that there's a non-atomic ope

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

2020-01-30 Thread Chris Angelico
On Thu, Jan 30, 2020 at 7:41 PM R.Wieser wrote: > Also think of the old adagio: BTW, the word you want here is "adage", unless you mean that it's a piece of music being played slowly :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

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

2020-01-30 Thread Chris Angelico
On Thu, Jan 30, 2020 at 7:41 PM R.Wieser wrote: > A database /sounds/ good, but what happens when you ctrl-c outof a > non-atomic operation ? How do you fix that ?IOW: Databases can be > corrupted for pretty-much the same reason as for a simple datafile (but with > much worse consequences).

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

2020-01-30 Thread R.Wieser
jkn, > MRAB's scheme does have the disadvantages to me that Chris has pointed > out. Nothing that can't be countered by keeping copies of the last X number of to-be-dowloaded-URLs files. As for rewriting every time, you will /have/ to write something for every action (and flush the file!), if