this post was submitted on 29 Apr 2026
36 points (100.0% liked)

Programming

26738 readers
287 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] Skullgrid@lemmy.world 3 points 1 day ago (1 children)

I'm just going to brain fart this in here. why is it pip freeze , if it doesn't stop dependencies from updating or whatever?

https://pip.pypa.io/en/latest/reference/requirements-file-format/

Looking at the format it supports bare, pinned, or version ranges.

I imagine ranges are preferred for libraries as you'd hit version conflicts if the same dependency showed up twice with different pinned versions in the dependency tree.

https://pip.pypa.io/en/stable/topics/dependency-resolution/#backtracking

The post suggests that during backtracking the maximum version considered for any dependency must be a certain age to reduce the attack surface of malicious releases assuming the vulnerability will be caught within the desired window.