[Patches] [ python-Patches-1631035 ] SyntaxWarning for backquotes

SourceForge.net noreply at sourceforge.net
Wed Mar 21 04:54:36 CET 2007


Patches item #1631035, was opened at 2007-01-08 17:26
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1631035&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: Anthony Baxter (anthonybaxter)
Assigned to: Thomas Wouters (twouters)
Summary: SyntaxWarning for backquotes

Initial Comment:
The following patch (for 2.6) issues a SyntaxWarning for backquotes/backticks in source code. I had to add the filename to struct compiling in Python/ast.c - this seems like the neatest way to get the filename passed around. (see also the XXX before ast_error)

Assigned to twouters, since it was his idea in the first place. 


----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-03-20 20:54

Message:
Logged In: YES 
user_id=33168
Originator: NO

Also see http://python.org/sf/1683908 that has some other warnings impl.

----------------------------------------------------------------------

Comment By: Anthony Baxter (anthonybaxter)
Date: 2007-01-08 22:55

Message:
Logged In: YES 
user_id=29957
Originator: YES

And here's another one (on top of the last one) that also emits
SyntaxWarnings for <>

Not sure I like 'NOTEQUALSOLD' as a token name, but I couldn't think of
anything better.

This one should probably be only enabled when the Py3K warnings flag is
on. 

File Added: notequals.diff

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1631035&group_id=5470


More information about the Patches mailing list