mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
found a bug in python see: test/python-bug.py
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c3db4c5724
commit
6059014eba
23
test/python-bug.py
Executable file
23
test/python-bug.py
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/env python
|
||||
|
||||
# this works...
|
||||
l = [[1, []]]
|
||||
l[0][1] += [1]
|
||||
|
||||
# let's change the structure a bit...
|
||||
l = [(1, [])]
|
||||
|
||||
# now, this also works...
|
||||
e = l[0][1]
|
||||
e += [1]
|
||||
|
||||
|
||||
# XXX and this fails...
|
||||
l[0][1] += [1]
|
||||
|
||||
|
||||
# and here is how...
|
||||
## Traceback (most recent call last):
|
||||
## File "F:\work\ImageGrid\cur\ImageGrid\src\test\python-bug.py", line 17, in <module>
|
||||
## l[0][1] += [1]
|
||||
## TypeError: 'tuple' object does not support item assignment
|
||||
Loading…
x
Reference in New Issue
Block a user