Message385607
I suspect that I found a bug. If I run the following script:
```
def f(t=None):
t0, t1 = t if t is not None else [], []
return t0, t1
def g(t=None):
if t is None:
t = [], []
t0, t1 = t
return t0, t1
def test():
res_f = f(t=([1, 1], [2, 2]))
res_g = g(t=([1, 1], [2, 2]))
assert res_f == res_g, f'{res_f=} != {res_g=}'
test()
```
I get an assertion error, with:
```
res_f=(([1, 1], [2, 2]), []) != res_g=([1, 1], [2, 2])
```
I expected them to be equal. |
|
Date |
User |
Action |
Args |
2021-01-25 08:42:56 | wietse.j | set | recipients:
+ wietse.j |
2021-01-25 08:42:55 | wietse.j | set | messageid: <1611564175.96.0.494312223598.issue43021@roundup.psfhosted.org> |
2021-01-25 08:42:55 | wietse.j | link | issue43021 messages |
2021-01-25 08:42:55 | wietse.j | create | |
|