Skip to content

Warn about tuple parameters #47310

Closed
Closed

Description

@benjaminp
BPO 3060
Nosy @birkenfeld, @benjaminp
Files
  • tuple_parameters_warn.patch
  • tuple_parameters_warn2.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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2008-06-08.23:11:06.886>
    created_at = <Date 2008-06-08.01:45:53.270>
    labels = ['interpreter-core', 'type-bug']
    title = 'Warn about tuple parameters'
    updated_at = <Date 2008-06-08.23:11:06.885>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2008-06-08.23:11:06.885>
    actor = 'benjamin.peterson'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-06-08.23:11:06.886>
    closer = 'benjamin.peterson'
    components = ['Interpreter Core']
    creation = <Date 2008-06-08.01:45:53.270>
    creator = 'benjamin.peterson'
    dependencies = []
    files = ['10549', '10553']
    hgrepos = []
    issue_num = 3060
    keywords = ['patch']
    message_count = 6.0
    messages = ['67820', '67823', '67825', '67842', '67845', '67850']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'benjamin.peterson']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3060'
    versions = ['Python 2.6']

    Activity

    1. benjaminp commented on Jun 8, 2008

      @benjaminp
      ContributorAuthor

      This patch adds Py3k warnings to nested tuple parameters.

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-bugAn unexpected behavior, bug, or error
      on Jun 8, 2008
    3. birkenfeld commented on Jun 8, 2008

      @birkenfeld
      Member

      Why not warn in the AST, like for the other syntax-related changes?
      The relevant location is ast_for_arguments, line 680 in current SVN.

    4. birkenfeld commented on Jun 8, 2008

      @birkenfeld
      Member

      Also a test is missing.

    5. benjaminp commented on Jun 8, 2008

      @benjaminp
      ContributorAuthor

      Why not warn in the AST, like for the other syntax-related changes?

      because I was reading through symtable.c at the time. :)

      Anyway, here's a better patch.

    6. birkenfeld commented on Jun 8, 2008

      @birkenfeld
      Member

      Replace "upacking" with "unpacking" and you can commit it :)

    7. benjaminp commented on Jun 8, 2008

      @benjaminp
      ContributorAuthor

      Done with r64045.

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions