# Make set.union and set.intersection convert a non-set self implicitly

**URL:** <https://discuss.python.org/t/make-set-union-and-set-intersection-convert-a-non-set-self-implicitly/41432>\
**Category:** Ideas\
**Created:** [December 19, 2023, 3:40am UTC](https://discuss.python.org/t/make-set-union-and-set-intersection-convert-a-non-set-self-implicitly/41432 "2023-12-19T03:40:29Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![tjreedy](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tjreedy/32/137_2.png) [@tjreedy](https://discuss.python.org/u/tjreedy)\
**Post date:** [December 19, 2023, 5:45am UTC](https://discuss.python.org/t/make-set-union-and-set-intersection-convert-a-non-set-self-implicitly/41432/12 "2023-12-19T05:45:27Z")

</div>

I cannot think of any precedent for what you are requesting. It violates the basic idea of an instance method. Anyway, give a list of lists:

```auto
lists = [[1, 2, 3], [2, 3, 4], [3, 4, 5]]
set(lists.pop()).intersection(*lists)
# {3}

```

---

_[View the full topic](https://discuss.python.org/t/make-set-union-and-set-intersection-convert-a-non-set-self-implicitly/41432)._
