Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a4095efc
Commit
a4095efc
authored
May 29, 2017
by
Jim Fasarakis-Hilliard
Committed by
Serhiy Storchaka
May 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change error message for array methods to use 'array' instead of 'list'. (#1853)
parent
163468a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Modules/arraymodule.c
Modules/arraymodule.c
+2
-2
No files found.
Modules/arraymodule.c
View file @
a4095efc
...
...
@@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
else
if
(
cmp
<
0
)
return
NULL
;
}
PyErr_SetString
(
PyExc_ValueError
,
"array.index(x): x not in
list
"
);
PyErr_SetString
(
PyExc_ValueError
,
"array.index(x): x not in
array
"
);
return
NULL
;
}
...
...
@@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
else
if
(
cmp
<
0
)
return
NULL
;
}
PyErr_SetString
(
PyExc_ValueError
,
"array.remove(x): x not in
list
"
);
PyErr_SetString
(
PyExc_ValueError
,
"array.remove(x): x not in
array
"
);
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment