optparse.py:FutureWarning错误 [英] optparse.py: FutureWarning error

查看:76
本文介绍了optparse.py:FutureWarning错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用基于
python的程序getmail4时,我不断收到以下错误/警告消息:


/usr/lib/python2.3/optparse .py:668:FutureWarning:%u /%o /%x /%X

负int将返回Python 2.4及以上的签名字符串

return(" ;<%s在0x%x:%r>"


我在debian sid框上使用python2.3.5。


getmail4网站/常见问题解答认为这是optparse

模块中的一个错误。


有关如何解决此问题的想法?


谢谢

凯文

I keep getting the following error/warning message when using the
python based program getmail4:

/usr/lib/python2.3/optparse.py:668: FutureWarning: %u/%o/%x/%X of
negative int will return a signed string in Python 2.4 and up
return ("<%s at 0x%x: %r>"

I''m using python2.3.5 on a debian sid box.

The getmail4 website/FAQ maintains that this is a bug in the optparse
module.

Any idea on how to resolve this?

Thanks
Kevin

推荐答案



" kosuke"< ke *** @ rustybear.com>在留言中写道

news:11 ******************* ***@g47g2000cwa.googlegr oups.com ...

"kosuke" <ke***@rustybear.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
使用基于python的程序getmail4时,我不断收到以下错误/警告信息:

/usr/lib/python2.3/optparse.py:668:FutureWarning: %/%o /%x /%x
负int将在Python 2.4中返回一个带符号的字符串并返回
返回(<%s at 0x%x:%r>"

我在debian sid框上使用python2.3.5。

getmail4网站/常见问题解答认为这是optparse
模块中的一个错误。

关于如何解决这个问题的想法?
I keep getting the following error/warning message when using the
python based program getmail4:

/usr/lib/python2.3/optparse.py:668: FutureWarning: %u/%o/%x/%X of
negative int will return a signed string in Python 2.4 and up
return ("<%s at 0x%x: %r>"

I''m using python2.3.5 on a debian sid box.

The getmail4 website/FAQ maintains that this is a bug in the optparse
module.

Any idea on how to resolve this?




a)学会和它一起生活;-)

b)升级到2.4(如果getmail4将与它一起运行)

c)检查Python是否有用于抑制警告的启动选项


至于c)python - h给出了一个列表,表明我的想法,-W控制

警告,但没有给我足够的信息使用它,我没有找到

更多在文档中。我希望其他人可以加入。


Terry J. Reedy

Terry J. Reedy



a) Learn to live with it ;-)
b) Upgrade to 2.4 (if getmail4 will run with it)
c) Check to see if Python has a startup option for suppressing warnings

As to c) python -h gives a list indicating what I thought, that -W controls
warnings, but gives insufficient info for me to use it, and I didn''t find
any more in the docs. I hope someone else chimes in.

Terry J. Reedy
Terry J. Reedy

Terry Reedy写道:
Terry Reedy wrote:
c)检查Python是否有用于抑制警告的启动选项

至于c)python -h给出一个列表,表明我的想法,-W控制
警告,但没有给我足够的信息使用它,我在文档中找不到
。我希望别人能够插话。
c) Check to see if Python has a startup option for suppressing warnings

As to c) python -h gives a list indicating what I thought, that -W controls
warnings, but gives insufficient info for me to use it, and I didn''t find
any more in the docs. I hope someone else chimes in.




man python。搜索-W。

-

Michael Hoffman



man python. Search for -W.
--
Michael Hoffman


Michael Hoffman写道:
Michael Hoffman wrote:
Terry Reedy写道:
Terry Reedy wrote:
c)检查Python是否有用于抑制警告的启动选项

至于c)python -h给出一个列表表明我的想法,-W
控制警告,但没有给我足够的信息使用它,我在文档中找不到任何更多信息。我希望其他人可以加入。
c) Check to see if Python has a startup option for suppressing warnings

As to c) python -h gives a list indicating what I thought, that -W
controls warnings, but gives insufficient info for me to use it, and I
didn''t find any more in the docs. I hope someone else chimes in.



man python。搜索-W。


man python. Search for -W.




"""

C:\ junk> man python

''man''不被视为内部或外部命令,

可操作程序或批处理文件。

"""


有人可以发一份

" man python"的整个arg部分的副本。输出,为了Windows用户的利益?


TIA,

John



"""
C:\junk>man python
''man'' is not recognized as an internal or external command,
operable program or batch file.
"""

Could someone please post a copy of the whole of the arg section of the
"man python" output, for the benefit of Windows users?

TIA,
John


这篇关于optparse.py:FutureWarning错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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