Python 2.5:IO 模块
我想使用Python的 IO 模块。它只在 Python 2.6 中引入,我现在坚持使用 2.5。 Python 2.6 提供的特定 IO 模块是否可以作为可与 2.5 一起使用的单独模块使用?
I would like to use Python's IO module. It was only introduced in Python 2.6 and I'm stuck with 2.5 for now. Is the particular IO module provided with Python 2.6 available as a separate module that can be used with 2.5?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
自推出以来,IO 模块经历了多次重大修订。对于 Python 2.7 和 3.1,它补充了更快的 C 版本,并且修复了许多错误。据我所知,没有人尝试将当前版本移植到 2.5。不幸的是,最好的选择是使用 2.7。
The IO module has undergone a number of significant revisions since it was introduced. For Python 2.7 and 3.1, it was supplemented by a much faster C version and many bugs have been fixed. As far as I know, no one has attempted to back port the current version to 2.5. Unfortunately, your best bet is to use 2.7.