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 pitrou
Recipients Claudiu.Popa, abingham, benjamin.peterson, pitrou, rhettinger, vstinner
Date 2014-03-14.10:11:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394791906.2338.2.camel@fsol>
In-reply-to <1394791670.63.0.763929286862.issue19359@psf.upfronthosting.co.za>
Content
Another possible idea is to introduce a "proxy protocol" (__proxy__ /
tp_proxy) that would be used as a fallback by PyObject_LookupSpecial to
fetch the lookup target, i.e.:

def PyObject_LookupSpecial(obj, name):
    tp = type(obj)
    try:
        return getattr(tp, name)
    except AttributeError:
        return getattr(tp.tp_proxy(), name)

(not sure that makes sense, I haven't thought very hard about it)
History
Date User Action Args
2014-03-14 10:11:48pitrousetrecipients: + pitrou, rhettinger, vstinner, benjamin.peterson, Claudiu.Popa, abingham
2014-03-14 10:11:48pitroulinkissue19359 messages
2014-03-14 10:11:48pitroucreate