News for hackers. Stuff that matters.
Re:What's New in Python 3.11? by salmo on Monday June 27, 2022 @07:41AM (#31893157)
This is my problem. I’ve gotten to where the extra work to use a language that generates a binary is lower than the distribution problem with Python.

I’ve rewritten 3 CLIs because it’s too much of a pain for people to get them set up.

I still use it for myself to whip through a CSV, collate data from APIs. Sometimes a tiny API or web app (I really don’t like webdev) where I can deploy a container or pipeline deployment.

And I don’t have to use all the new bells and whistles. But so many do.

The type hinting system in particular is so much more painful to read (to me) than in a language with actual types.

Re:What's New in Python 3.11? by rawbot on Wednesday June 29, 2022 @03:00AM (#31917280)
You can generate a binary of your script (and all dependencies) with pyinstaller[1], and then your users don't have to worry about anything other than running the binary.

> PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules. PyInstaller supports Python 3.7 and newer, and correctly bundles many major Python packages such as numpy, matplotlib, PyQt, wxPython, and others.

[1] https://pyinstaller.org/en/stable/

Re:What's New in Python 3.11? by salmo on Wednesday June 29, 2022 @07:23AM (#31918698)
Oh that’s cool. I’d tried some of these years ago, but they were painful, didn’t support Python 3.x, etc.

I’ll have to check it out.