[pypy-issue] [issue1109] list.pop() reports wrong number of expected arguments

Stefan Behnel tracker at bugs.pypy.org
Mon Apr 2 09:58:33 CEST 2012


New submission from Stefan Behnel <stefan_ml at behnel.de>:

In CPython:

>>> L=[1,2,3]
>>> L.pop(1,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: pop() takes at most 1 argument (2 given)

In PyPy:

>>>> L=[1,2,3]
>>>> L.pop(1,2)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: pop() takes at most 2 arguments (3 given)
>>>> help(L.pop)
Help on method pop:

pop(_1, _2=None) method of __builtin__.list instance
    L.pop([index]) -> item -- remove and return item at index (default last)

----------
messages: 4172
nosy: pypy-issue, sbehnel
priority: bug
status: unread
title: list.pop() reports wrong number of expected arguments

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1109>
________________________________________


More information about the pypy-issue mailing list