Skip to content

Commit 8f94d19

Browse files
committed
Remove unprotect on both Subsets and All...
Since these should not be unprotected...
1 parent fc8be34 commit 8f94d19

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

mathics/builtin/combinatorial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ class Subsets(Builtin):
454454
= {}
455455
"""
456456

457-
attributes = ("Unprotected",)
458457
rules = {
459458
"Subsets[list_ , Pattern[n,_?ListQ|All|DirectedInfinity[1]], spec_]": "Take[Subsets[list, n], spec]",
460459
}

mathics/builtin/lists.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ class All(Predefined):
383383
<dd>is a possible option value for 'Span', 'Quiet', 'Part' and related functions. 'All' specifies all parts at a particular level.
384384
</dl>
385385
"""
386-
attributes = ("Unprotected",)
387386

388387
pass
389388

@@ -1040,7 +1039,7 @@ class Part(Builtin):
10401039
10411040
The 3d column of a matrix:
10421041
>> {{a, b, c}, {d, e, f}, {g, h, i}}[[All, 3]]
1043-
= {c,f,i}
1042+
= {c, f, i}
10441043
10451044
Further examples:
10461045
>> (a+b+c+d)[[-1;;-2]]

0 commit comments

Comments
 (0)