Incorrect evaluation order of function arguments with *args

Open
#67,505 25 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
compilers

Research direction

The payload names no source files, tests, or entry points. Start by locating the CPython interpreter code that evaluates function arguments involving *args and reproduce the ordering problem described in the title. Done means the evaluation order is corrected and covered by a regression test.

Written by the indexing model from the issue text.

Description

3.13 interpreter-core type-bug
BPO 23316
Nosy @gvanrossum, @terryjreedy, @bitdancer, @serhiy-storchaka, @NeilGirdhar, @gvanrossum, @iritkatriel

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 = None
created_at = <Date 2015-01-25.15:46:56.223>
labels = ['interpreter-core', 'type-bug', '3.11']
title = 'Incorrect evaluation order of function arguments with *args'
updated_at = <Date 2021-06-22.22:13:28.002>
user = 'https://bugs.python.org/JoshuaLandau'

bugs.python.org fields:

activity = <Date 2021-06-22.22:13:28.002>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2015-01-25.15:46:56.223>
creator = 'Joshua.Landau'
dependencies = []
files = []
hgrepos = []
issue_num = 23316
keywords = []
message_count = 25.0
messages = ['234672', '234673', '234675', '234697', '234698', '234702', '234703', '234704', '234756', '234773', '235083', '395929', '395951', '395953', '395962', '395965', '395968', '395970', '395972', '395974', '395975', '395978', '396006', '396009', '396369']
nosy_count = 9.0
nosy_names = ['gvanrossum', 'terry.reedy', 'r.david.murray', 'SilentGhost', 'Joshua.Landau', 'serhiy.storchaka', 'NeilGirdhar', 'Guido.van.Rossum', 'iritkatriel']
pr_nums = []
priority = 'low'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue23316'
versions = ['Python 3.11']

Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/cpython

All issues in python/cpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.