diff options
Diffstat (limited to 'category.py')
-rw-r--r-- | category.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/category.py b/category.py index ad33774..1bccda1 100644 --- a/category.py +++ b/category.py @@ -59,6 +59,13 @@ class Category: retval.add(Category(self.name, **newargs)) return retval + def intersect_args(self, **args): + """ + `intersect` this Category with a new Category that has the same name and + the provided args. + """ + return self.intersect(Category(self.name, **args)) + def intersect(self, other): """ Returns a new category consisting only of items that are in this |