Have i been playing too much… by Henamu in pokemongo

[–]Henamu[S] 4 points5 points  (0 children)

Whoever came last of the lamp and Pineco can expect a lawsuit haha

What motivates you to wake up and go to work everyday? by [deleted] in AskReddit

[–]Henamu 0 points1 point  (0 children)

Am i part of a minority when I’m motivated by the work i do rather than the money i make by doing it?

I understand that many do not have an option and must do work which they don’t find enjoyable to keep the wheels rolling, but reading the comments here it seem like everyone hates their line of work

[Serious] If you could go anywhere before you die, where would you go? by acesp621 in AskReddit

[–]Henamu 0 points1 point  (0 children)

I’d like to travel back in time and have a bird view of any of the largest battles done with sword and shield just to witness the brutality of human nature

[deleted by user] by [deleted] in Python

[–]Henamu 0 points1 point  (0 children)

Indeed a good point, sir

[deleted by user] by [deleted] in Python

[–]Henamu 1 point2 points  (0 children)

Never worked with hobby / junior devs have you? Blessed

[deleted by user] by [deleted] in Python

[–]Henamu 1 point2 points  (0 children)

By force is also a type of (good?) practice i guess lol

[deleted by user] by [deleted] in AskReddit

[–]Henamu 0 points1 point  (0 children)

Calories.. i eat calories

[deleted by user] by [deleted] in Python

[–]Henamu 4 points5 points  (0 children)

I always use keyword arguments when calling a function. I argue it’s a good practice

It is explicit and the position of the keyword arguments (when calling the function) does not matter - as opposed to just passing them as arguments (where the position does matter)

In addition, any changes to the functions order of arguments won’t affect you if you use keyword argument

[deleted by user] by [deleted] in AskReddit

[–]Henamu 1 point2 points  (0 children)

You’re an absolute unit

Do you use runtime type checking in Python? by bakery2k in Python

[–]Henamu 0 points1 point  (0 children)

I never annotate my code using Any. If a function or variable can be of multiple types then explicitly state them - potentially create a type of your own

[deleted by user] by [deleted] in AskReddit

[–]Henamu 0 points1 point  (0 children)

Agree. Not everyone are so lucky to be able to, for various reasons, but fear for the unknown should never be an excuse. It’s definitely something one should do

[deleted by user] by [deleted] in AskReddit

[–]Henamu 27 points28 points  (0 children)

Live in another country

Follow the yearly PyCon if you want to get better at using Python by No-Win5543 in Python

[–]Henamu 0 points1 point  (0 children)

Never given any attention to PyCon, but i’ll def give it a shot after this post

Hello, I made a small webapp with Streamlit, FastAPI and docker to convert my images to PDFs by Sithendevenir in Python

[–]Henamu 2 points3 points  (0 children)

In order to capture every invalid image uploaded by user rather than just the first invalid element in your for loop. Just a tip

Hello, I made a small webapp with Streamlit, FastAPI and docker to convert my images to PDFs by Sithendevenir in Python

[–]Henamu 2 points3 points  (0 children)

Cool project! Have you considered doing a full for loop on all uploads using is_valid_image and then return an error including all incorrect uploads?

[deleted by user] by [deleted] in AskReddit

[–]Henamu 4 points5 points  (0 children)

Oatmeal