Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ooh. That's a nice utility funtion that I will write soon. We tend to look at requirements as something we hope the package manager gets right, and then we ignore at runtime, but there are a bunch of errors we could avoid if we verified at runtime. Sometimes when writing a library you have to have different code paths for different versions.

Something like `if check_versions(pandas__gt="2.0.0", pandas__lt="3.0.0"):`



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: