Skip to content

Commit 84a9d7a

Browse files
committed
Unprotect All and Subsets..
These are prerequisites for having Combinatorica V2.0 to load without given errors. Combinatorica v2.0 (the version that is on par with the latest book) is starting to work, although testing shows it is not as good as v0.9 yet.
1 parent df56a87 commit 84a9d7a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

mathics/builtin/combinatorial.py

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

457+
attributes = ("Unprotected",)
457458
rules = {
458459
"Subsets[list_ , Pattern[n,_?ListQ|All|DirectedInfinity[1]], spec_]": "Take[Subsets[list, n], spec]",
459460
}

mathics/builtin/lists.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,11 @@ def apply(self, expr, evaluation):
379379
class All(Predefined):
380380
"""
381381
<dl>
382-
<dt>'All'
383-
<dd>is a possible value for 'Span' and 'Quiet'.
382+
<dt>'All'
383+
<dd>is a possible value for 'Span' and 'Quiet'.
384384
</dl>
385385
"""
386+
attributes = ("Unprotected",)
386387

387388
pass
388389

0 commit comments

Comments
 (0)