Message213530
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) |
|
Date |
User |
Action |
Args |
2014-03-14 10:11:48 | pitrou | set | recipients:
+ pitrou, rhettinger, vstinner, benjamin.peterson, Claudiu.Popa, abingham |
2014-03-14 10:11:48 | pitrou | link | issue19359 messages |
2014-03-14 10:11:48 | pitrou | create | |
|