Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Saving the times a script is run to a file or ...
Post: RE: Saving the times a script is run to a file or ...

(Oct-19-2022, 04:14 PM)ibreeden Wrote: (Oct-19-2022, 03:28 PM)3Pinter Wrote: I did test this one: - opening the txt file using notepad - run script.Be careful. As far as I know Notepad.exe does no...
3Pinter General Coding Help 7 1,320 Oct-19-2022, 05:38 PM
    Thread: Saving the times a script is run to a file or ...
Post: RE: Saving the times a script is run to a file or ...

Ahhh that's clever! Certainly something I can test. I did test this one: - opening the txt file using notepad - run script. result: no errors, reopening txt file showed the correct file (with the add...
3Pinter General Coding Help 7 1,320 Oct-19-2022, 03:28 PM
    Thread: Saving the times a script is run to a file or ...
Post: RE: Saving the times a script is run to a file or ...

well, It's never 'updating' a line. it's just adding and adding and adding.--> "script X, projectnumber, date" I could rewrite it to csv, no problem. Unsure how to test the 'same time' two scri...
3Pinter General Coding Help 7 1,320 Oct-18-2022, 04:26 PM
    Thread: Saving the times a script is run to a file or ...
Post: Saving the times a script is run to a file or ...

Hi, I have a lot of scripts from which I'd like to know the amount of times it was run. I coded a working version a long time ago plus I was even more a beginner than I'm currently. So I'll show you...
3Pinter General Coding Help 7 1,320 Oct-18-2022, 06:25 AM
    Thread: where do you keep (or manage) your coding
Post: where do you keep (or manage) your coding

Hi guys, So I was wondering how do you guys code and perhaps more like: how do you manage your coding? So a bit about my myself I'm not a professional coder but I do use python almost daily. What ...
3Pinter Bar 1 1,720 Jan-03-2021, 10:55 AM
    Thread: module not found, is ok?
Post: RE: module not found, is ok?

Oh I'm no professional programmer and this is only used for my firm. So no other users, not even other programmers who use it. So obviously I fix my uppercase issue, but I was wondering in general i...
3Pinter General Coding Help 3 2,409 Nov-24-2020, 05:17 PM
    Thread: module not found, is ok?
Post: module not found, is ok?

I created a own __init__.py which call in a script. Works just fine. However, I renamed a module (all to lowercase), so a script obviously doesn't find the module. Which raised the question, do you...
3Pinter General Coding Help 3 2,409 Nov-24-2020, 02:49 PM
    Thread: sorting one by one
Post: RE: sorting one by one

(Nov-20-2020, 04:41 PM)bowlofred Wrote: (Nov-20-2020, 12:45 PM)3Pinter Wrote: for a second I thought you indented wrong but oh my for else does exists! Yes, I saw one of Raymond's presentations wh...
3Pinter General Coding Help 4 2,076 Nov-20-2020, 06:47 PM
    Thread: sorting one by one
Post: RE: sorting one by one

for a second I thought you indented wrong but oh my for else does exists! Awesome. And yes, my example code doesn't solve it, and yes dictionaries are to be used but I first had to understand where m...
3Pinter General Coding Help 4 2,076 Nov-20-2020, 12:45 PM
    Thread: sorting one by one
Post: sorting one by one

I'm going to explain what I want as simple as possible (brainfarts over here atm), You probably know the game mikado, where you release a bunch of sticks on the table and you have to pick 'm up witho...
3Pinter General Coding Help 4 2,076 Nov-20-2020, 08:08 AM
    Thread: should I ... go class or stick with functions?
Post: RE: should I ... go class or stick with functions?

Thanks all for your much appreciated responses! Based upon that I think a class would indeed be a proper way to code it. As Atombear mentioned in bullet 1, functions are used in other functions. (p...
3Pinter General Coding Help 4 2,031 Nov-14-2020, 10:40 AM
    Thread: should I ... go class or stick with functions?
Post: should I ... go class or stick with functions?

Hi guys, I have a bunch of functions which are 'bundled' in a __init__.py The functions are basicly way to get standard data from our office. Think of: - what is the projectnumber -----> no inp...
3Pinter General Coding Help 4 2,031 Nov-13-2020, 07:26 PM
    Thread: possible scores
Post: possible scores

Guys, Got myself a nerdy thing going on: I want to get all possible scores given a set parameters. you play 24 games which can either win or lose. for a win: you earn some points and your level inc...
3Pinter Data Science 0 1,429 Sep-20-2020, 02:58 PM
    Thread: selenium click in iframe fails
Post: RE: selenium click in iframe fails

(Apr-27-2020, 03:55 PM)Larz60+ Wrote: how did you get the xpath, was it using inspect? Quote:'/html/body/form/table/tbody/tr/td[1]/table/tbody/tr[2]/td[1]/div/input[3]' Was obtained using inspect. ...
3Pinter Web Scraping & Web Development 6 5,023 Apr-29-2020, 07:32 AM
    Thread: selenium click in iframe fails
Post: RE: selenium click in iframe fails

(Bump) Anybody a clue?
3Pinter Web Scraping & Web Development 6 5,023 Apr-27-2020, 08:35 AM
    Thread: selenium click in iframe fails
Post: RE: selenium click in iframe fails

hmmm yes, it is empty. so that explains the non click action. Strange though since the xpath is correct (looking at the html of that nested iframe) Altering the xpath to something like: element = dr...
3Pinter Web Scraping & Web Development 6 5,023 Apr-21-2020, 06:18 AM
    Thread: selenium click in iframe fails
Post: selenium click in iframe fails

hi Guys, What I want: clicking on the 'sign in' button on this website https://sites.google.com/site/ActiveRumblers/deck I can get the input populated with data, but the click action ... nope. What a...
3Pinter Web Scraping & Web Development 6 5,023 Apr-20-2020, 06:49 PM
    Thread: unique (single) value in dict (or list)
Post: RE: unique (single) value in dict (or list)

on second thoughts: how to return the dictionary item (key+val)? I think that dictionary isn't the logical approach for this?
3Pinter General Coding Help 5 2,404 Mar-27-2020, 12:55 PM
    Thread: unique (single) value in dict (or list)
Post: RE: unique (single) value in dict (or list)

yes. that looks like what I want to achieve. your approach looks more logical than mine, thanks!
3Pinter General Coding Help 5 2,404 Mar-27-2020, 07:33 AM
    Thread: unique (single) value in dict (or list)
Post: RE: unique (single) value in dict (or list)

Still unsure about the approach ndc85430, but thinking about something like this. mylist = [ [1, "a"], [2, "b"], [1, "c"], [1, "c"], [1, "c"], [1, "a"] ] test = [a[1] for a in mylist] # ['a', 'b...
3Pinter General Coding Help 5 2,404 Mar-26-2020, 07:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020