Paramiko 会被移植到 Python 3.x 吗? [英] Is Paramiko going to be ported over to Python 3.x?

查看:40
本文介绍了Paramiko 会被移植到 Python 3.x 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎需要移植 PyCrypt 才能实现这一点.自己做很难吗?

Seems to be that PyCrypt is required to be ported, in order to make that happen. Is it hard to do yourself?

推荐答案

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

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.

大部分主要工作会在2to3之前完成,之后如果需要,您可以进行微调调整以确保一切正常.

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.

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

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!).

这篇关于Paramiko 会被移植到 Python 3.x 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆