Issue738951

classification
Title: jython slice behavior differs from python in __getattr__
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, cupdike, juneau001
Priority: high Keywords:

Created on 2003-05-16.21:14:42 by cupdike, last changed 2006-08-13.02:46:49 by cgroves.

Files
File name Uploaded Description Edit Remove
BUG_getslice__.txt cupdike, 2003-05-16.21:14:42 DetailsWithCode.txt
Messages
msg847 (view) Author: Clark Updike (cupdike) Date: 2003-05-16.21:14:42
Bug:  Jython only forwards slice objects to __getitem__ 
when __getattr__('__getslice__') raises an AttributeError, 
which is different than Python.  Python forwards a slice 
object to __getitem__ when __getattr__('__getslice__') 
raises ANY error.

Jython needs to forward a slice object to __getitem__ 
whenever __getattr__('__getslice__') raises an error to 
be compatible.

Details with Code are attached...
msg848 (view) Author: Juneau001 (juneau001) Date: 2006-06-13.21:20:38
Logged In: YES 
user_id=1536464

I've repaired this issue.  Please see patch # 1505666.

- Josh
msg849 (view) Author: Charlie Groves (cgroves) Date: 2006-08-13.02:46:49
Logged In: YES 
user_id=1174327

Fixed in r2888.
History
Date User Action Args
2003-05-16 21:14:42cupdikecreate