Paramiko 会移植到 Python 3.x 吗?

发布于 2024-09-28 09:10:22 字数 1459 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯寂 2024-10-05 09:10:22

您可以尝试使用Python 2.7自带的2to3将项目源转换为Python 3 兼容代码。然后,只需对转换的包运行一些测试,看看它们是否有效。

大部分主要工作将由2to3完成,之后如果需要的话可以进行微调以使一切顺利进行。

至于 Paramiko 和 PyCrypt 被移植到 Py3K,可能不会。 PyCrypt 的最后一个版本是在 2007 年,Paramiko 的最后一个版本是在 2009 年 11 月。因此,您最好尝试自己做(当然,与世界其他地方分享结果!)。

You can try using 2to3, which comes with Python 2.7, to convert the source of projects to Python 3 compliant code. Then, just run some tests on the packages you converted and see if they work.

Most of the major work will be done by 2to3, and after that you can make fine-tuned adjustments if you need to to make everything work well.

As for Paramiko and PyCrypt being ported over to Py3K, probably not. The last release of PyCrypt was in 2007 and the last release of Paramiko was in November 2009. So, you'd be best off trying to do it yourself (and, of course, sharing the results with the rest of the world!).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文