diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-12-01 10:15:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-01 10:15:57 -0800 |
commit | e0122a4fc3bf9453220c2802a50c253a381b59c9 (patch) | |
tree | 24f7828dc7feeba92d6ca739b132818847952b18 /numpy/core/einsumfunc.py | |
parent | 0ee245bc6df60b911fafe81a743ec2a68a063c20 (diff) | |
parent | e4c14fb48851bc38d59c57dd2c2ed4993f7f8a42 (diff) | |
download | numpy-e0122a4fc3bf9453220c2802a50c253a381b59c9.tar.gz |
Merge pull request #12443 from rth/set-litteral
MAINT Use set litterals
Diffstat (limited to 'numpy/core/einsumfunc.py')
-rw-r--r-- | numpy/core/einsumfunc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index 963c696ae..832ff3057 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -169,7 +169,7 @@ def _optimal_path(input_sets, output_set, idx_dict, memory_limit): Examples -------- >>> isets = [set('abd'), set('ac'), set('bdc')] - >>> oset = set('') + >>> oset = set() >>> idx_sizes = {'a': 1, 'b':2, 'c':3, 'd':4} >>> _path__optimal_path(isets, oset, idx_sizes, 5000) [(0, 2), (0, 1)] @@ -340,7 +340,7 @@ def _greedy_path(input_sets, output_set, idx_dict, memory_limit): Examples -------- >>> isets = [set('abd'), set('ac'), set('bdc')] - >>> oset = set('') + >>> oset = set() >>> idx_sizes = {'a': 1, 'b':2, 'c':3, 'd':4} >>> _path__greedy_path(isets, oset, idx_sizes, 5000) [(0, 2), (0, 1)] |