This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients barry, eli.bendersky, ethan.furman, josh.r
Date 2018-01-18.19:28:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516303705.12.0.467229070634.issue29752@psf.upfronthosting.co.za>
In-reply-to
Content
To move this forward:

The proposal is to add support for a new method, _missing_name_, which is called by __getitem__.

If such a method does not exist, the normal AttributeError exception is raised;

otherwise, the _missing_name_ method is called with the invalid name and should return a matching member or None;
- if None, the normal AttributeError exception is raised
- if a member, it is returned
- otherwise, a Type(?)Error is raised
History
Date User Action Args
2018-01-18 19:28:25ethan.furmansetrecipients: + ethan.furman, barry, eli.bendersky, josh.r
2018-01-18 19:28:25ethan.furmansetmessageid: <1516303705.12.0.467229070634.issue29752@psf.upfronthosting.co.za>
2018-01-18 19:28:25ethan.furmanlinkissue29752 messages
2018-01-18 19:28:24ethan.furmancreate