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 jdemeyer
Recipients benjamin.peterson, bup, jdemeyer, rhettinger
Date 2019-04-04.15:45:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554392714.22.0.907222206195.issue34396@roundup.psfhosted.org>
In-reply-to
Content
> Amusingly, this is because of an old hack to make directly calling somedict.__getitem__ fast: https://github.com/python/cpython/commit/8f5cdaa784f555149adf5e94fd2e989f99d6b1db

But what's the use case of making somedict.__getitem__(x) fast? One should just write somedict[x] instead.

If PEP 580 or PEP 590 is accepted, it should be easy to simply make wrapper descriptors such as somedict.__getitem__ faster, removing the need for METH_COEXIST.
History
Date User Action Args
2019-04-04 15:45:14jdemeyersetrecipients: + jdemeyer, rhettinger, benjamin.peterson, bup
2019-04-04 15:45:14jdemeyersetmessageid: <1554392714.22.0.907222206195.issue34396@roundup.psfhosted.org>
2019-04-04 15:45:14jdemeyerlinkissue34396 messages
2019-04-04 15:45:14jdemeyercreate