# Walrus fails with \[\]

**URL:** <https://discuss.python.org/t/walrus-fails-with/15606>\
**Category:** Python Help\
**Created:** [May 8, 2022, 8:15am UTC](https://discuss.python.org/t/walrus-fails-with/15606 "2022-05-08T08:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![vainaixr](https://avatars.discourse-cdn.com/v4/letter/v/5f8ce5/32.png) [@vainaixr](https://discuss.python.org/u/vainaixr)\
**Post date:** [May 8, 2022, 8:15am UTC](https://discuss.python.org/t/walrus-fails-with/15606/1 "2022-05-08T08:15:14Z")

</div>

these are invalid,

```auto
([x] := [1])

```

gives,

```auto
SyntaxError: cannot use assignment expressions with list

```

similarly,

```auto
([x, *_] := [1, 2])

```

also fails with the same error.

What could be the reasoning that they decide to not allow such a syntax?  
I do not see any problem with them.

---

_[View the full topic](https://discuss.python.org/t/walrus-fails-with/15606)._
