Skip to content

Commit

Permalink
Merge pull request #489 from hroncok/python3.13
Browse files Browse the repository at this point in the history
Fix necompiler.getArguments() on Python 3.13.0b1
  • Loading branch information
FrancescAlted authored May 30, 2024
2 parents 9b5a451 + fcceab4 commit 7ef1e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numexpr/necompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def getArguments(names, local_dict=None, global_dict=None, _frame_depth: int=2):
# If we generated local_dict via an explicit reference to f_locals,
# clear the dict to prevent creating extra ref counts in the caller's scope
# See https://github.com/pydata/numexpr/issues/310
if clear_local_dict:
if clear_local_dict and hasattr(local_dict, 'clear'):
local_dict.clear()

return arguments
Expand Down

0 comments on commit 7ef1e04

Please sign in to comment.