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

Symtable's syntax warning should contain the word "because" #66207

Closed
akaptur mannequin opened this issue Jul 18, 2014 · 2 comments
Closed

Symtable's syntax warning should contain the word "because" #66207

akaptur mannequin opened this issue Jul 18, 2014 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@akaptur
Copy link
Mannequin

akaptur mannequin commented Jul 18, 2014

BPO 22008
Files
  • issue.patch
  • 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 = None
    closed_at = <Date 2014-07-18.23:26:21.126>
    created_at = <Date 2014-07-18.22:45:49.955>
    labels = ['type-bug', 'library']
    title = 'Symtable\'s syntax warning should contain the word "because"'
    updated_at = <Date 2014-07-18.23:26:21.104>
    user = 'https://bugs.python.org/akaptur'

    bugs.python.org fields:

    activity = <Date 2014-07-18.23:26:21.104>
    actor = 'python-dev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-07-18.23:26:21.126>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2014-07-18.22:45:49.955>
    creator = 'akaptur'
    dependencies = []
    files = ['35992']
    hgrepos = []
    issue_num = 22008
    keywords = ['patch']
    message_count = 2.0
    messages = ['223447', '223451']
    nosy_count = 2.0
    nosy_names = ['python-dev', 'akaptur']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22008'
    versions = ['Python 2.7']

    @akaptur
    Copy link
    Mannequin Author

    akaptur mannequin commented Jul 18, 2014

    The symbol table's syntax error about unqualified exec is missing the word "because".

    >>> def foo():
    ...     exec "a = 1"
    ...     def bar():
    ...         print a
    ... 
      File "<stdin>", line 2
    SyntaxError: unqualified exec is not allowed in function 'foo' it contains a nested function with free variables

    @akaptur akaptur mannequin assigned docspython Jul 18, 2014
    @akaptur akaptur mannequin added type-feature A feature request or enhancement docs Documentation in the Doc dir labels Jul 18, 2014
    @berkerpeksag berkerpeksag added stdlib Python modules in the Lib dir and removed docs Documentation in the Doc dir labels Jul 18, 2014
    @berkerpeksag berkerpeksag added type-bug An unexpected behavior, bug, or error and removed type-feature A feature request or enhancement labels Jul 18, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 18, 2014

    New changeset ef009b76bca3 by Benjamin Peterson in branch '2.7':
    add missing 'because' (closes bpo-22008)
    http://hg.python.org/cpython/rev/ef009b76bca3

    @python-dev python-dev mannequin closed this as completed Jul 18, 2014
    @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
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant