Message52878
Generates a DeprecationWarning for the use of <>. Is it a hack to do this within Parser/tokenizer.c? Can't see any other immediate way to do it without generating an alternate token code for <> vs. !=:
tom@localhost:~/src/python-trunk$ ./python -3
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
warning: callable() not supported in 3.x
Python 2.6a0 (trunk:56394M, Jul 15 2007, 21:00:33)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 <> 2
sys:1: DeprecationWarning: <> not supported in 3.x
True
>>> 1 != 2
True
>>>
|
|
Date |
User |
Action |
Args |
2007-08-23 15:59:09 | admin | link | issue1754273 messages |
2007-08-23 15:59:09 | admin | create | |
|