Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning for backquotes #44433

Closed
anthonybaxter mannequin opened this issue Jan 9, 2007 · 4 comments
Closed

SyntaxWarning for backquotes #44433

anthonybaxter mannequin opened this issue Jan 9, 2007 · 4 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@anthonybaxter
Copy link
Mannequin

anthonybaxter mannequin commented Jan 9, 2007

BPO 1631035
Nosy @Yhg1s, @tiran
Files
  • backticks.diff: backticks.diff
  • notequals.diff: notequals.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/Yhg1s'
    closed_at = <Date 2007-12-18.11:54:06.366>
    created_at = <Date 2007-01-09.01:26:32.000>
    labels = ['interpreter-core']
    title = 'SyntaxWarning for backquotes'
    updated_at = <Date 2007-12-18.11:54:06.365>
    user = 'https://bugs.python.org/anthonybaxter'

    bugs.python.org fields:

    activity = <Date 2007-12-18.11:54:06.365>
    actor = 'christian.heimes'
    assignee = 'twouters'
    closed = True
    closed_date = <Date 2007-12-18.11:54:06.366>
    closer = 'christian.heimes'
    components = ['Interpreter Core']
    creation = <Date 2007-01-09.01:26:32.000>
    creator = 'anthonybaxter'
    dependencies = []
    files = ['7706', '7707']
    hgrepos = []
    issue_num = 1631035
    keywords = ['patch']
    message_count = 4.0
    messages = ['51711', '51712', '51713', '58739']
    nosy_count = 4.0
    nosy_names = ['twouters', 'nnorwitz', 'anthonybaxter', 'christian.heimes']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1631035'
    versions = ['Python 2.6']

    @anthonybaxter
    Copy link
    Mannequin Author

    anthonybaxter mannequin commented Jan 9, 2007

    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.

    @anthonybaxter anthonybaxter mannequin assigned Yhg1s Jan 9, 2007
    @anthonybaxter anthonybaxter mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 9, 2007
    @anthonybaxter anthonybaxter mannequin assigned Yhg1s Jan 9, 2007
    @anthonybaxter anthonybaxter mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 9, 2007
    @anthonybaxter
    Copy link
    Mannequin Author

    anthonybaxter mannequin commented Jan 9, 2007

    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

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Mar 21, 2007

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

    @tiran
    Copy link
    Member

    tiran commented Dec 18, 2007

    Warnings for <> and `` were added a while ago.

    @tiran tiran closed this as completed Dec 18, 2007
    @tiran tiran closed this as completed Dec 18, 2007
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants