Issue1042

classification
Title: Jython does not intern strings as aggressively as CPython
Type: behaviour Severity: normal
Components: Core Versions: 2.5alpha1
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, zyasoft
Priority: Keywords: test failure causes

Created on 2008-05-27.00:43:16 by fwierzbicki, last changed 2008-09-13.21:06:08 by fwierzbicki.

Messages
msg3208 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2008-05-27.00:43:15
test_class.py fails because Jython does not intern strings as
aggressively as CPython.  A shorter version of the failure:

#passes CPython, fails Jython
try:
    raise AttributeError, "booh"
except AttributeError, x:
    assert str(x) is "booh"

#Will pass in both if re-written:
try:
    raise AttributeError, intern("booh")
except AttributeError, x:
    assert intern(str(x)) is "booh"
msg3527 (view) Author: Jim Baker (zyasoft) Date: 2008-09-13.19:26:59
CPython test_class apparently no longer tests for this. It's likely not
an issue we have to fix.
msg3537 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2008-09-13.21:06:08
Jim Baker: sounds good to me! - closing.
History
Date User Action Args
2008-09-13 21:06:08fwierzbickisetstatus: open -> closed
resolution: wont fix
messages: + msg3537
2008-09-13 19:27:00zyasoftsetnosy: + zyasoft
messages: + msg3527
2008-05-27 01:14:11fwierzbickisetkeywords: + test failure causes
2008-05-27 00:43:16fwierzbickicreate