[โ€“] 7 points 11 months ago

Instead, I asked my friend Karthikeyan Singaravel, who is a Python core developer, and he recommended using the deadsnakes PPA for Ubuntu to install any version of Python that I chose.

I donโ€™t know who needs to hear this, but deadsnakes is noob bait. It has some utility and convenience for sure, but itโ€™s not portable and will probably hold you back long-term.

Unless youโ€™re running bleeding-edge releases and need managed updates, just pull a tarball from python.org, and follow the README using make altinstall. You can do it; I promise.

If you are in the bleeding-edge camp, conda or uv are more flexible options that fill the same niche and more.

  • source
  • How old is this article? There hasn't been EnvironmentError since py33

    Had to look it up.

    Your point still stands, ignoring Exceptions bad. The next thing would wanna see are the unit tests. If those are nonexistent then of course the code is gonna be buggy. The hint is that you called the CLI a script. So not a package.

    So it's a good thing you have revisited the code and hopefully rewritten it as a package with a test suite.

  • source
  • [โ€“] [S] 5 points 11 months ago

    Yes I understand your point, but I'm trying to reach out so people are aware and can use it in Python education. I feel it can really help beginners understand tricky concepts with ease, bit it's hard to reach a bigger audience these days. Sorry for the repetition, I'll guess I should cut back a bit.

  • source
  • parent
  • context
  • [โ€“] 12 points 11 months ago

    Pyrefly is a type checker and language server for Python, which provides lightning-fast type checking along with IDE features such as code navigation, semantic highlighting, and code completion. It is available as a command-line tool and a VSCode extension.

  • source
  • [โ€“] [S] 1 point 11 months ago*

    That looks very nice and seems to hit most use cases as far as I can see in my just-woken state. If it had been easier to search for, then I might now have written mine.

    I'd have to try it to see how it deals with my common case of rather a lot of numpy arrays in hierarchies if ducts or pydantic models and the floating point precision issues. Maybe it'll do that brilliantly.

  • source
  • parent
  • context
  • [โ€“] [S] 1 point 11 months ago

    Different languages make different choices. The disadvantage of Haskell is that if you want to change one value in a collection of a million values that it either makes a full copy or tries to optimize by sharing values behind the scene, both resulting in significant overhead. Most people already understand that pure functional programming languages don't deliver except in very specific circumstances: Haskell TIOBE rating 0.32%, https://www.tiobe.com/tiobe-index/

  • source
  • parent
  • context
  • view more: โ€น prev next โ€บ