main icon indicating copy to clipboard operation
main copied to clipboard

Error message misreports required number of args

Open ironpythonbot opened this issue 10 years ago • 2 comments

from collections import deque
deque('abc', 2, 2)

Traceback (most recent call last):
File "", line 1, in
TypeError: init() takes at least -1 arguments (3 given)

Work Item Details

Original CodePlex Issue: Issue 20162 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Dec 10, 2008 at 10:20 PM Reported by: darb Updated on: Feb 22, 2013 at 2:14 AM Updated by: jdhardy Test: test_stdmodules.py (test_cp20162)

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

On 2009-11-16 06:46:36 UTC, dfugate commented:

No dev-added regression, and the message isn't completely correct yet either:

D:\vsl\Merlin\Main\Languages\IronPython\Tests>26 -c "import collections;collections.deque('abc', 2, 2)"

Traceback (most recent call last): File "", line 1, in TypeError: deque() takes at most 2 arguments (3 given)

D:\vsl\Merlin\Main\Languages\IronPython\Tests>ipyd -c "import collections;collections.deque('abc', 2, 2)"

Traceback (most recent call last): TypeError: init() takes at most 2 arguments (3 given)

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

Still shows init() instead of deque()

slide avatar Oct 26 '16 02:10 slide