4 February 2026
Ссылка
click to show
click to show
python 3.14 标准库已经支持 reflink copy 了,pip 可能将来也会用它
https://github.com/pypa/pip/issues/11092#issuecomment-3433934951
银河-蜗牛 GalaxySnailpython 3.14 标准库已经支持 reflink copy 了,pip 可能将来也会用它
https://github.com/pypa/pip/issues/11092#issuecomment-3433934951
copy_file_range gives filesystems an opportunity to implement the use of reflinks or server-side copy, but we cannot determine whether any of them are implemented.
其实是可以的,如果下面的文件系统不支持的话,copy_file_range 会返回 EOPNOTSUPP 或者 EXDEV
银河-蜗牛 GalaxySnail总之 3.14 都已经发布几个月了。这个话题已经过去了.jpg(
这个讨论串其实很有趣,你会发现这帮人在那猜测 copy_file_range 的行为,但是没有任何一个人完整的读完了 copy_file_range(2),他们的很多疑问和猜测的答案就在手册里
浅见沙织 via @InTypstBotLinux 也有 clone 啊,copy_file_range(2) 就是,为啥不用
zanieb:
uv also does not yet attempt to sniff for reflink support on Linux, so we're lacking support too :)
6 February 2026
jiang zhexinGitHub 里看到仓库里一个 requirements.txt 给我一种年久失修的感觉
有时翻到 requirements.txt 都没有的仓库就更绝望了,连 python 版本也没标
🅼🆁🆂🆆🅸🆃🅲🅷requirements里面写上库的版本号也不行吗
我的一点想法 😬:
1. requirements.txt 没有记录 Python 自身的版本。
2. 实际上你至少需要两份 requirements.txt:一份用来指定直接依赖,另一份用来固定(使用 ==)所有依赖(包括间接依赖)。后者可以用 pip freeze 来生成。注意 pip freeze 的语义是捕捉当前环境下所有已安装的包。而 uv.lock 是根据 pyproject.toml 直接生成,并且自动更新。
3. 使用 uv.lock 安装环境速度更快,因为安装时不需要解析依赖(这一步在生成 uv.lock 时就已经做了)。