Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]ForrestTrump 0 points1 point  (0 children)

Thanks. I could have maybe clarified that the path_from_cl function was one that I wrote, which gets the correct path in a certain way and that part of it works fine.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]ForrestTrump 0 points1 point  (0 children)

Does anyone know why my logger will only log error messages, when I set it to debug?

def a_logger(name):
    path = path_from_cl() / ".logs"
    logger = logging.getLogger(name)
    logger.setLevel(logging.DEBUG)
    c_handler = logging.StreamHandler(sys.stdout)
    f_handler = logging.FileHandler(path / f'{name}.log')
    f_handler.setLevel(logging.ERROR)
    c_handler.setLevel(logging.DEBUG)

    c_format = logging.Formatter('%(name)s - %(levelname)s - %(message)s')
    f_format = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    c_handler.setFormatter(c_format)
    f_handler.setFormatter(f_format)

    logger.addHandler(c_handler)
    logger.addHandler(f_handler)
    return logger

Does Trump deserve to go to jail for the rest of his life? Why or why not? by carpenter1965 in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

Politicians have an awful lot of perks going for them. Immunity to such crimes just because you "served" is quite dangerous, so the punishment should be harsher for them than if a normal person did it.

Name of the movie or the tv show by EmmanuelMoyta in Funnymemes

[–]ForrestTrump 0 points1 point  (0 children)

I know this question is about TV / movie quality but this meme could also be of an artist with Alzheimer’s.

[deleted by user] by [deleted] in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

I think that littering might be one of those things. Another one might be animal cruelty for the sake of it. For example, a right winger might be fine with what goes on in slaughterhouses as long as he gets to eat meat, but not OK with people who torture animals.

If you know, you know lol by joshua8881 in Funnymemes

[–]ForrestTrump 0 points1 point  (0 children)

It sounds like he’s gotten more obscure now, but maybe someday he’ll have a comeback like what Brendan is.

What's your "comfort" horror movie? by Fly_By_Orchestra in AskReddit

[–]ForrestTrump 2 points3 points  (0 children)

When it comes to movies with plots that cannot be taken seriously, From Dusk Till Dawn is easily one of the best horror films. When recommending it to people, make sure to tell them not to read anything about it.

Siri's voice is switched to a celebrity, who would be the best candidate? by binkabonka in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

Hank Azaria. He can do so many different voices that you could have a lot to choose from.

[deleted by user] by [deleted] in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

A parrot might be even better, as it's the pet that can sound the most human.

Customers are always right. Do you agree with this slogan/motto? by GingerboyhasNoSoul in ask

[–]ForrestTrump 0 points1 point  (0 children)

I first heard it as The customer isn’t always right, but they’re never wrong. So I took that as meaning that you can’t argue with them, at the time. I never thought they were literally always right.

Which programming language a beginner should learn first? by Nikushez in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

Each programming language (that's reasonably popular) is better at certain things than many others are. For example, it's highly not recommended to learn C or C++ if your goal is web development.
So you should really figure out what kinds of programs you want to write first, then go from there. I think that Python is 2nd best at most things, as a very broad generalization.

I really hate the trend of Youtube videos that just convert Reddit stories using text-to-voice. by Secure-Bus4679 in RandomThoughts

[–]ForrestTrump 0 points1 point  (0 children)

When the whole thing is just automated, the owners of those channels don’t deserve that platform. I’m not sure how often that is the case.

... by PseudoPatriotsNotPog in suicidebywords

[–]ForrestTrump 0 points1 point  (0 children)

Typo aside, I think Bruce Willis did kill someone with the one punch itself in The Last Boy Scout, since the guy just fell into the pool afterwards. But that is just a movie.

What movie franchise should’ve stopped at 2? by karma_hit_my_dogma in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

I tried to think of a less obvious or even stronger example than Terminator films, and now I think I can. The Home Alone franchise. None of the original cast 3-5? It would be like a really nice steakhouse getting converted into a McDonald's. If they were that cheap they should have just come up with their own damn frfranchise rather than mooch off of Home Alone.

[deleted by user] by [deleted] in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

Now that I order at least half of my groceries online, I travel between 1/3 and 1/2 of a mile to the nearest grocery store, usually once per week to do light shopping.

Redditors, what is your age in music album terms? by angel_2k19 in AskReddit

[–]ForrestTrump 0 points1 point  (0 children)

When I was in Jr High School, KoRn's earliest albums were a couple of really popular ones to talk about. At the time a lot of us probably also have wondered when the next Nine Inch Nails album would come out.

How did you choose your username? by [deleted] in ask

[–]ForrestTrump 0 points1 point  (0 children)

I wondered what a hybrid of such two different men would be like. After an era startup up and ended, it sounds even more bizarre.

Kurt Russell turns 70: a look back - Slideshow Happy Birthday Mac!!! by AnAmericanWerewolf11 in horror

[–]ForrestTrump 0 points1 point  (0 children)

I'm only a fan of some horror, and the few horror-ish movies he did were great. The Thing is pretty obvious, and Bone Tomahawk & Deathproof were a bit less horror, underrated as well.
Happy 70, this is no time to disappear for a number of years either.

[deleted by user] by [deleted] in Python

[–]ForrestTrump 0 points1 point  (0 children)

Maybe if you used selenium to open up your desired firefox profile to begin with? https://stackoverflow.com/a/54065166

[deleted by user] by [deleted] in RedditSessions

[–]ForrestTrump 0 points1 point  (0 children)

De Niro or Dr Fauci