We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__set__
1 parent 9486136 commit 6dd42b5Copy full SHA for 6dd42b5
userbenchmark/dynamo/dynamobench/_dynamo/utils.py
@@ -3505,6 +3505,12 @@ def object_has_getattribute(value: Any):
3505
return class_has_getattribute(type(value))
3506
3507
3508
+def object_setattr_ignore_descriptor(obj, name, value):
3509
+ # https://github.com/python/cpython/blob/3.11/Objects/object.c#L1286-L1335
3510
+ d = object.__getattribute__(obj, "__dict__")
3511
+ d[name] = value
3512
+
3513
3514
def class_has_getattribute(cls: type):
3515
try:
3516
if isinstance(
0 commit comments