Python 2.5打破了大量的纯Python代码? [英] huge amounts of pure Python code broken by Python 2.5?

查看:89
本文介绍了Python 2.5打破了大量的纯Python代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jean-Paul Calderone< ex ***** @ divmod.comwrote:


Python 2.5破坏了大量的纯Python代码。



有趣。你能举几个插图吗? (我根本没有运行

,所以我很好奇。)


史蒂夫

解决方案

Steven Bethard写道:


Jean-Paul Calderone< ex ***** @ divmod.comwrote :


> Python 2.5破坏了大量的纯Python代码。



有趣。你能举几个插图吗? (我根本没有运行

,所以我很好奇。)


Steve



我不能想到我的任何代码被破坏了,它修复了我正在战斗的一个

破解的SSL问题(在Windows上)。


-Larry


2月6日上午8:40,Steven Bethard< steven.beth ... @ gmail.comwrote:


Jean-Paul Calderone< exar ... @ divmod.comwrote:


巨额金额我的纯Python代码被Python 2.5打破了。



有趣。你能举几个插图吗? (我根本没有运行

,所以我很好奇。)


Steve



据猜测,在2.5中破解代码的最可能的事情是

来自latin-1的默认编码的变化(或者无论什么

安装的默认设置为)ascii。


这将有打破大多数依赖于

默认源的模块编码。幸运的是,修复(不是很简单)

很简单 - 只需扫描库并在

前面输入正确的编码注释。


John Roth


" John Roth" < Jo ******* @jhrothjr.comescribiónenel mensaje

news:11 ********************* @ k78g2000cwa.googlegro ups.com ...


2月6日上午8:40,Steven Bethard< steven.beth ... @ gmail.comwrote:


> Jean-Paul Calderone< exar ... @ divmod.comwrote:


> Python 2.5打破了大量的纯Python代码。


有趣。你能举几个插图吗? (我根本没有遇到同样的问题,所以我很好奇。)



猜测,最有可能的事情打破2.5中的工作批次中的代码

默认编码从latin-1(或任何

安装具有默认设置)到ascii的更改。



自2.3以来发出警告......


-

Gabriel Genellina


Jean-Paul Calderone <ex*****@divmod.comwrote:

Huge amounts of my pure Python code was broken by Python 2.5.

Interesting. Could you give a few illustrations of this? (I didn''t run
into the same problem at all, so I''m curious.)

Steve

解决方案

Steven Bethard wrote:

Jean-Paul Calderone <ex*****@divmod.comwrote:

>Huge amounts of my pure Python code was broken by Python 2.5.


Interesting. Could you give a few illustrations of this? (I didn''t run
into the same problem at all, so I''m curious.)

Steve


I can''t think of any of my code that got broken and it fixed a
broken SSL problem (on Windows) that I was fighting.

-Larry


On Feb 6, 8:40 am, Steven Bethard <steven.beth...@gmail.comwrote:

Jean-Paul Calderone <exar...@divmod.comwrote:

Huge amounts of my pure Python code was broken by Python 2.5.


Interesting. Could you give a few illustrations of this? (I didn''t run
into the same problem at all, so I''m curious.)

Steve


At a guess, the most likely thing to break code in job lots in 2.5 was
the change in default coding from latin-1 (or whatever the
installation has the default set to) to ascii.

This would have a tendency to break most modules that depended on the
default source coding. Fortunately, the fix is (not quite trivially)
easy - just scan the library and put the right coding comment in the
front.

John Roth


"John Roth" <Jo*******@jhrothjr.comescribió en el mensaje
news:11*********************@k78g2000cwa.googlegro ups.com...

On Feb 6, 8:40 am, Steven Bethard <steven.beth...@gmail.comwrote:

>Jean-Paul Calderone <exar...@divmod.comwrote:

> Huge amounts of my pure Python code was broken by Python 2.5.


Interesting. Could you give a few illustrations of this? (I didn''t run
into the same problem at all, so I''m curious.)


At a guess, the most likely thing to break code in job lots in 2.5 was
the change in default coding from latin-1 (or whatever the
installation has the default set to) to ascii.

And that has given a warning since 2.3...

--
Gabriel Genellina


这篇关于Python 2.5打破了大量的纯Python代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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