main
main copied to clipboard
Error message misreports required number of args
from collections import deque
deque('abc', 2, 2)
Traceback (most recent call last):
File "
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)
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 "
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)
Still shows init() instead of deque()