[issue40123] append() works not correct

2020-03-31 Thread merli


New submission from merli :

Please try out and look bug in this example:

Liste   = []
StringL = ["Nr.:", "NR", "Bielefeld", "Paderborn", "Lemgo"]
for i in range (10):
StringL[1] = str(i)
Liste.append(StringL)
print (StringL)
#print (Liste)
print ()

print()
for i in range (10):
print (Liste[i])

--
messages: 365371
nosy: merli
priority: normal
severity: normal
status: open
title: append() works not correct
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue40123>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40123] append() works not correct

2020-03-31 Thread merli


merli  added the comment:

Output:

['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']
['Nr.:', '9', 'Bielefeld', 'Paderborn', 'Lemgo']

--

___
Python tracker 
<https://bugs.python.org/issue40123>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com