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 ronaldoussoren
Recipients amaury.forgeotdarc, ronaldoussoren
Date 2015-07-25.12:55:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437828918.94.0.23416519246.issue18181@psf.upfronthosting.co.za>
In-reply-to
Content
pep447-2015-07-25-v2.txt changes two things w.r.t. the patch earlier today:

1) The performance problems w.r.t. the method_cache are gone

2) Added code for handling python exceptions other than AttributeError in
   calls to __getdescriptor__. 

   This code requires some tests to make sure the error handling code 
   is correct.

The new patch also adds some more tests, and adds extra MCACHE_STATS counters. Those aren't part of the proposal but were helpful to find the problem w.r.t. 1).

As I mentioned before implementing __getdescriptor__ in Python is bad for performance of instances of that metaclass. AFAIK that cannot be helped, doing that will just execute a lot more Python code.
History
Date User Action Args
2015-07-25 12:55:20ronaldoussorensetrecipients: + ronaldoussoren, amaury.forgeotdarc
2015-07-25 12:55:18ronaldoussorensetmessageid: <1437828918.94.0.23416519246.issue18181@psf.upfronthosting.co.za>
2015-07-25 12:55:18ronaldoussorenlinkissue18181 messages
2015-07-25 12:55:18ronaldoussorencreate