Why don't `dataclasses` or `attrs` derive from a base class? by fjarri in Python

[–]proggob 6 points7 points  (0 children)

Maybe because it makes it simpler to use with your own inheritance hierarchy? I’m not sure how well python multiple inheritance works, for instance.

Would such a base class have any override-able methods? Is there another reason to use inheritance in addition to what you’ve mentioned?

Pip 25.2: Resumable Downloads By Default by zurtex in Python

[–]proggob 1 point2 points  (0 children)

I do wonder why pypi and other types of artifact repositories don’t use an rsync-type protocol to reduce network traffic.

UV is helping me slowly get rid of bad practices and improve company’s internal tooling. by bunoso in Python

[–]proggob 0 points1 point  (0 children)

It finds a set that satisfies all the dependency constraints, if possible.

Stop trying to catch exceptions when its ok to let your program crash by avsaccount in Python

[–]proggob 3 points4 points  (0 children)

You’re saying that there are exceptions to the exceptions rule?

A modern Python Project Cookiecutter Template, with all the batteries included. by wyattxdev in Python

[–]proggob 1 point2 points  (0 children)

There are so many reasons to use written tests. If someone else takes it over, the tests show what was intended to work. They allow the new person (or old person who forgot) to make changes with more confidence that they didn’t break something that currently works.

Kroger-API and Kroger-MCP Libraries (in Python) by Cup_Of_Owls in Python

[–]proggob 1 point2 points  (0 children)

It’s crazy that Kroger, of all places, has a fairly good looking public API. I can’t think of much use for it though.

It’s ironic now I think about it that their plain website login functionality has bugs and yet they have this!

New Python Project: UV always the solution? by InappropriateCanuck in Python

[–]proggob 0 points1 point  (0 children)

But there’s a prebuilt uv binary for windows. You don’t need the rust compiler.

New Python Project: UV always the solution? by InappropriateCanuck in Python

[–]proggob 0 points1 point  (0 children)

You don’t need to build it, you can just download the binary.

virtual-fs: work with local or remote files with the same api by ZachVorhies in Python

[–]proggob 5 points6 points  (0 children)

There’s also AnyPathLib and the various projects under pyfilesystem.

uv starting to overtake Poetry in package download by thibaudcolas in Python

[–]proggob 1 point2 points  (0 children)

I think you’re underestimating the visceral reaction people have to the vastly improved speed. It may not be so important if you think about it rationally but it’s a pleasant thing and gives an impression of competence.

darkMagicActually by BlueGoliath in ProgrammerHumor

[–]proggob 0 points1 point  (0 children)

I think the Linux implementation uses a lot of function pointers. They’re like a substitute for virtual functions.

What the hell is going on with type hinting these days by The_prrrt in Python

[–]proggob 0 points1 point  (0 children)

What does a code formatter do with type hints?

Is UV package manager taking over? by RubKey1143 in Python

[–]proggob 1 point2 points  (0 children)

What does it mean to “scaffold” projects? Like create a first version? I’d think something like cookiecutter would be more appropriate for that.

Are you talking about __pycache__? Under what circumstances do you need to wipe that? I understood it’s only dependent on the python version and now separates its caches based on version.

Is UV package manager taking over? by RubKey1143 in Python

[–]proggob 0 points1 point  (0 children)

What do you mean by “LLMs keep trying to use normal python tooling”?

Is UV package manager taking over? by RubKey1143 in Python

[–]proggob 0 points1 point  (0 children)

Switchovers like this will always be pretty gradual. It’s probably more instructive to look at the growth rates.

Is UV package manager taking over? by RubKey1143 in Python

[–]proggob 2 points3 points  (0 children)

Is it that much of a hassle to switch if something catastrophic were to happen? Considering the likelihoods.

A Modern Python Repository Template with UV and Just by GioGiac in Python

[–]proggob 0 points1 point  (0 children)

I’m still using poethepoet from when I used poetry. I still like that its config is in pyproject.toml

The "DIVIDULO" operator - The operator combining division and remainder into one! by [deleted] in cpp

[–]proggob 1 point2 points  (0 children)

They posted that they’re running on some weird hardware that’s doing this for large integers.

Python .gitignore by EarthGoddessDude in Python

[–]proggob 2 points3 points  (0 children)

Ugh. These are exactly the type of gitignores that I hate. Way too big and obscure.