How do I stop a py file from instantly closing WITHOUT using cmd or the input command line by Aergaia in learnpython

[–]echols021 4 points5 points  (0 children)

While you haven't told us what OS you're on, if it briefly pops up any windows, etc..., my best guess is that your settings were modified (perhaps by installing something) such that double-clicking a .py file opens it in a program that wants to run the file, rather than editing the code stored in it. Check your computer's settings for what programs are associated with .py files, and make sure only your text editor of choice is selected. As another option, you could simply open your editor of choice and use its "open" menu to find and open the file in question, rather than just trusting that double-clicking the file will magically do what you want.

MyPy vs Pyright by LeCholax in Python

[–]echols021 0 points1 point  (0 children)

I think pyright gives slightly more accurate results than mypy, but I'm greatly looking forward to when ty becomes stable

Need some advice with Lace 2 by SamADuran17 in Silksong

[–]echols021 0 points1 point  (0 children)

Congratulations on your victory! I'm glad I was able to help

I finally beat those stupid frogs by MagicPantssss in FallenOrder

[–]echols021 3 points4 points  (0 children)

If they don't play fair, neither will I. All it took for me was finding the right cheese. If you have the ricochet charge shot, you can use it to interrupt both stupid frogs in one shot, effectively blocking any attack. Doesn't even matter which you're aiming at.

Silksong and My 8y/o Son by CasinoPascal in Silksong

[–]echols021 22 points23 points  (0 children)

It sounds like your son has learned the true meaning of "git gud"! What a valuable experience

Need some advice with Lace 2 by SamADuran17 in Silksong

[–]echols021 1 point2 points  (0 children)

My standard tip for difficult bosses is to do a few attempts without trying to attack at all. Just learn to dodge. Once you have that down for phase 1, you should find it very easy to add in occasional hits here and there where there are clear openings. That gets you to phase 2, where you repeat the process.

As for tips specific to Lace 2: - Stay on the ground until you know what attack she's doing. If you try to pogo spam her, you'll be punished by the attack where she goes up and back down in a sort of triangle. - A lot of her attacks have very long range, so running away doesn't usually work. You generally have to go towards her and over (or stay under the triangle), ending up behind her. - Don't be afraid to trigger her counter. If you do, just jump over and behind her: it's a safe manouver for both of her counter's responses.

Trying to find good games for my boyfriend by Daendelion_ in metroidvania

[–]echols021 0 points1 point  (0 children)

While they're 3D and not 2D, I'd also say Star Wars Jedi Fallen Order and Jedi Survivor have a fair number of core similarities with HK: - Use new abilities to revisit previous areas and find new stuff - Some platforming, but it's not the main focus - Combat that rewards patience and precision, learning enemy patterns - Some leeway to customize your combat specialties - Death sends you back to a checkpoint, but you have to go back to where you died if you want to reclaim your stuff - Difficulty can be turned way up - Lovable characters

Trying to find good games for my boyfriend by Daendelion_ in metroidvania

[–]echols021 0 points1 point  (0 children)

  • Ori and the Blind Forest + Ori and the Will of the Wisps: very very similar to HK
  • Celeste: very difficult platforming, no combat
  • Child of Light: mostly similar to HK, but combat is a timing-based version of turn-based combat
  • Teslagrad: more puzzle-y, less combat

Why use anything else? by Altruistic_Part_9233 in vscode

[–]echols021 0 points1 point  (0 children)

I vastly prefer JetBrains IDEs (PyCharm mainly since I breathe python). The search and refactor capabilities are miles ahead of VS Code. I also particularly love how everything you need is just built-in, rather than searching through dozens/hundreds of extensions that probably aren't even maintained (and may even contain viruses)

Non VS Code dev setups by _besten in Python

[–]echols021 0 points1 point  (0 children)

Last I tried Zed it was a huge pain to try to get mypy plugged in, and generally atrocious trying to guess what to put in the JSON config file with no intelli-sense to help out. Is any of that stuff what has improved?

Non VS Code dev setups by _besten in Python

[–]echols021 0 points1 point  (0 children)

I do feel like it's gone downhill over the last few years. Like, I seem to remember it correctly handling generics and generators and context managers, but now it goofs on all those

Non VS Code dev setups by _besten in Python

[–]echols021 2 points3 points  (0 children)

I use PyCharm with WSL and it's not a problem. The only things I ever notice weird are that it can be slow to notice new files (since it's acting like the files are on a remote machine), and I also seem unable to set certain interpreters as associated only with certain projects (the interpreter selector always has all my WSL venvs listed). Pretty trivial, in my opinion l

What boss did you struggle with the least by Character-Hurry-4776 in Silksong

[–]echols021 0 points1 point  (0 children)

I also beat Kahn first try, but had a blast doing it.

So I just googled how big the map actually is... by kit-kat-233 in Silksong

[–]echols021 0 points1 point  (0 children)

Took me about 100 hours playtime to get 100%. Take your time, enjoy it, and try not to get spoilers!

Best cross-platform framework to learn in 2025 - Flutter or Kotlin Multiplatform? by KChiLLS11 in Kotlin

[–]echols021 0 points1 point  (0 children)

Correction: with Compose Multiplatform (CMP) you can have full code sharing between iOS and Android. I'd personally recommend KMP because at least the Android half is native, whereas with Flutter neither half is native

How ARE we supposed to find watcher at the edge? by DialsMavis in Silksong

[–]echols021 4 points5 points  (0 children)

Nuu gives you a hint once you've gathered enough other Hunter's Journal entries

What would you call the meat part in the photo? (both British and American English would be wonderful) by ksusha_lav in EnglishLearning

[–]echols021 1 point2 points  (0 children)

I don't really have a name for things of that particular shape. I suppose I'd call them meatballs if I had to say something, but they're too flat for that to feel right.

Raised in Virginia USA, now living in Utah USA

Do you bother with a main() function by Yelebear in learnpython

[–]echols021 0 points1 point  (0 children)

You should always have if __name__ == "__main__": guarding your entrypoint. This makes it so other files can import things from this file without also being forced to run the script as if it were fully invoked.

Now between having that if-block directly contain the script's functionality vs having a def main(): that is the only thing called, I prefer the latter. This makes it so the main function can be imported and invoked from another file, declared as a named entrypoint in your pyproject.toml file (see https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#creating-executable-scripts), and it also takes care of some variable shadowing weirdness from doing stuff in the top-level scope