Issue2655

classification
Title: __findattr__ is final
Type: Severity: normal
Components: Documentation Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: deepy, jeff.allen
Priority: Keywords:

Created on 2018-02-13.06:06:58 by deepy, last changed 2018-03-07.21:20:21 by jeff.allen.

Messages
msg11702 (view) Author: Alex Nordlund (deepy) Date: 2018-02-13.06:08:35
https://wiki.python.org/jython/LearningJython#emulating-jython-dictionaries-sequences-etc
Mentions TestAttrAccess but it's not possible to override __findattr__ anymore as it is final.
msg11703 (view) Author: Jeff Allen (jeff.allen) Date: 2018-02-16.21:34:11
Gosh that's old documentation: not wholly reliable but surprisingly helpful :) 

It looks like __findattr_ex__ is the one to override since #1095. But given where your link lands, is it perhaps __finditem__ you want to override?
msg11704 (view) Author: Alex Nordlund (deepy) Date: 2018-02-20.07:35:53
__findattr_ex__ is the one, works like a charm!
Thanks!
History
Date User Action Args
2018-03-07 21:20:21jeff.allensetstatus: open -> closed
type: behaviour ->
resolution: fixed
2018-02-20 07:35:54deepysetmessages: + msg11704
components: + Documentation, - Core
2018-02-16 21:34:12jeff.allensetnosy: + jeff.allen
messages: + msg11703
2018-02-13 06:08:35deepysetmessages: + msg11702
2018-02-13 06:06:58deepycreate