Issue1039

classification
Title: AttributeError message on type instances doesn't match the CPython message
Type: behaviour Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: leosoto, pjenvey
Priority: Keywords:

Created on 2008-05-25.02:27:37 by leosoto, last changed 2008-06-07.22:23:47 by pjenvey.

Files
File name Uploaded Description Edit Remove
attribute_error_message_for_type_instances.patch leosoto, 2008-05-25.02:27:37
Messages
msg3201 (view) Author: Leonardo Soto (leosoto) Date: 2008-05-25.02:27:37
It may seem questionable if jython really must mimic such level of
detail. But if it doesn't, it will break doctests.

Attached is a patch with test. It simply overrides noAttributeError on
PyType.

Maybe the same should be done on PyInstance and PyClass.
msg3233 (view) Author: Philip Jenvey (pjenvey) Date: 2008-06-07.22:23:46
we should definitely mimic these messages as closely as possible, for 
that exact reason

applied in r4554

I also matched old style class's AttributeErrors
History
Date User Action Args
2008-06-07 22:23:47pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg3233
nosy: + pjenvey
2008-05-25 02:27:37leosotocreate