Issue2247

classification
Title: KeyError messages for non-string types for dict.pop() slightly inconsistent with CPython
Type: Severity: minor
Components: Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: Arfrever, santa4nt, zyasoft
Priority: low Keywords:

Created on 2015-01-04.23:09:59 by Arfrever, last changed 2015-01-14.17:10:16 by zyasoft.

Messages
msg9298 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2015-01-04.23:09:59
This is related to issue #2233.
There are additional quotes in messages in Jython.

CPython 2.7:

>>> {}.pop(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 1
>>> {}.pop(())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: ()
>>> {}.pop(frozenset())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: frozenset([])

Jython 2.7:

>>> {}.pop(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '1'
>>> {}.pop(())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: '()'
>>> {}.pop(frozenset())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'frozenset([])'
msg9322 (view) Author: Jim Baker (zyasoft) Date: 2015-01-06.23:50:27
Fixed as of https://hg.python.org/jython/rev/82eea9aced6b
History
Date User Action Args
2015-01-14 17:10:16zyasoftsetstatus: pending -> closed
2015-01-06 23:50:27zyasoftsetstatus: open -> pending
nosy: + zyasoft
messages: + msg9322
priority: low
assignee: zyasoft
resolution: fixed
2015-01-04 23:09:59Arfrevercreate