This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: SyntaxWarning for backquotes
Type: Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: twouters Nosy List: anthonybaxter, christian.heimes, nnorwitz, twouters
Priority: normal Keywords: patch

Created on 2007-01-09 01:26 by anthonybaxter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
backticks.diff anthonybaxter, 2007-01-09 01:26 backticks.diff
notequals.diff anthonybaxter, 2007-01-09 06:55 notequals.diff
Messages (4)
msg51711 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2007-01-09 01:26
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. 
msg51712 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2007-01-09 06:55
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
msg51713 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-03-21 03:54
Also see http://python.org/sf/1683908 that has some other warnings impl.
msg58739 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-12-18 11:54
Warnings for <> and `` were added a while ago.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44433
2007-12-18 11:54:06christian.heimessetstatus: open -> closed
resolution: out of date
messages: + msg58739
nosy: + christian.heimes
2007-01-09 01:26:32anthonybaxtercreate