<>和弃用警告 [英] <> and DeprecationWarning
问题描述
<>不平等测试操作员已被弃用了一段时间。
有没有理由说它没有触发弃用警告?
$ python2.2 -Wall -c" print 0<> 0"
0
$ python2.3 -Wall -c" print 0<> 0"
错误
或者是从未实施的唯一原因?
IANACS,但这不是''对我来说似乎很复杂......
你的,
格里特。
- <如果一个男人掏出另一个男人的眼睛,他的眼睛就会被熄灭。
- 公元前1780年,汉谟拉比,法典法则
-
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
Hi,
the <> inequality test operator has been deprecated for a loooooong time.
Is there a reason that it doesn''t trigger a DeprecationWarning?
$ python2.2 -Wall -c "print 0 <> 0"
0
$ python2.3 -Wall -c "print 0 <> 0"
False
Or is the only reason that is has never been implemented?
IANACS, but this doesn''t seem very complicated to implement to me...
yours,
Gerrit.
--
196. If a man put out the eye of another man, his eye shall be put out.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
推荐答案
python2.2 -Wall -c" print 0<> 0"
0
python2.2 -Wall -c "print 0 <> 0"
0
python2.3 -Wall -c" print 0<> 0"
错误
或者是从未实施的唯一原因?
IANACS,但这不是''对我来说似乎很复杂......
你的,
格里特。
- <如果一个男人掏出另一个男人的眼睛,他的眼睛就会被熄灭。
- 公元前1780年,汉谟拉比,法典法则
-
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
python2.3 -Wall -c "print 0 <> 0"
False
Or is the only reason that is has never been implemented?
IANACS, but this doesn''t seem very complicated to implement to me...
yours,
Gerrit.
--
196. If a man put out the eye of another man, his eye shall be put out.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Kom in verzet tegen dit kabinet:
http://www.sp.nl/
>
Dnia Mon,2003年10月20日12:18:31 +0200,Gerrit Holl napisa3(a):
Dnia Mon, 20 Oct 2003 12:18:31 +0200, Gerrit Holl napisa3(a):
<>不平等测试运算符已被弃用了一段时间。
the <> inequality test operator has been deprecated for a loooooong time.
谁说的?
-
[ Wojtek Walczak - gminick(at)underground.org.pl]
[< http://gminick.linuxsecurity.pl/> ]
[" ... rozmaite zwroty,matowe od patyny dawnosci。 ]
Who said that?
--
[ Wojtek Walczak - gminick (at) underground.org.pl ]
[ <http://gminick.linuxsecurity.pl/> ]
[ "...rozmaite zwroty, matowe od patyny dawnosci." ]
这篇关于<>和弃用警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!