diff options
| author | Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> | 2025-05-10 12:00:43 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-10 12:00:43 (GMT) |
| commit | dbca27cfca7da44cb102c1e10508a08cebddd9d7 (patch) | |
| tree | 6b6fb1a4e85a45ed92f5fbf0a931225705c1e562 /Python | |
| parent | f28cbc9fd3f37656ad55ef2488b65343b97fa902 (diff) | |
| download | cpython-dbca27cfca7da44cb102c1e10508a08cebddd9d7.zip cpython-dbca27cfca7da44cb102c1e10508a08cebddd9d7.tar.gz cpython-dbca27cfca7da44cb102c1e10508a08cebddd9d7.tar.bz2 | |
gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)
The right term is "parameters".
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/symtable.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/symtable.c b/Python/symtable.c index f633e28..a3d0fff 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -380,8 +380,8 @@ static void dump_symtable(PySTEntryObject* ste) } #endif -#define DUPLICATE_ARGUMENT \ -"duplicate argument '%U' in function definition" +#define DUPLICATE_PARAMETER \ +"duplicate parameter '%U' in function definition" static struct symtable * symtable_new(void) @@ -1494,7 +1494,7 @@ symtable_add_def_helper(struct symtable *st, PyObject *name, int flag, struct _s } if ((flag & DEF_PARAM) && (val & DEF_PARAM)) { /* Is it better to use 'mangled' or 'name' here? */ - PyErr_Format(PyExc_SyntaxError, DUPLICATE_ARGUMENT, name); + PyErr_Format(PyExc_SyntaxError, DUPLICATE_PARAMETER, name); SET_ERROR_LOCATION(st->st_filename, loc); goto error; } |
