Skip to content

Commit

Permalink
Avoid recursive setattr calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Oct 13, 2021
1 parent c2d4255 commit 3efe8a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ class DataFrame(IndexedFrame, Serializable, GetAttrGetItemMixin):
3 3 0.3
"""

_PROTECTED_KEYS = frozenset(("_column_accessor", "_data", "_index"))
_PROTECTED_KEYS = frozenset(("_data", "_index"))
_accessors: Set[Any] = set()
_loc_indexer_type = _DataFrameLocIndexer
_iloc_indexer_type = _DataFrameIlocIndexer
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __get__(self, instance, cls):
return self
else:
value = self.func(instance)
setattr(instance, self.func.__name__, value)
object.__setattr__(instance, self.func.__name__, value)
return value


Expand Down

0 comments on commit 3efe8a2

Please sign in to comment.