[ python-Patches-1754273 ] Deprecation warning for <> (NOTEQUAL)
"SourceForge.net" <[email protected]> Sun, 15 Jul 2007 04:01:24 -0700
| Newsgroups | gmane.comp.python.patches |
|---|---|
| Message-ID | <[email protected]> |
Patches item #1754273, was opened at 2007-07-15 21:01 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1754273&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core (C code) Group: Python 2.6 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Tom Lee (thomasglee) Assigned to: Nobody/Anonymous (nobody) Summary: Deprecation warning for <> (NOTEQUAL) Initial Comment: 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 >>> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1754273&group_id=5470