[issue38984] Value add to the wrong key in a dictionary

2019-12-06 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue38984] Value add to the wrong key in a dictionary

2019-12-05 Thread Ahmed Ramadan
Ahmed Ramadan added the comment: It's a bug in your code. masterInfoDict['id1'][4] and masterInfoDict['val1'][4] point to the same list object ['Si1'], to which 'Si2' and 'Si1' get appended when col1ID='id2'. -- nosy: +ramahmed ___ Python tracker

[issue38984] Value add to the wrong key in a dictionary

2019-12-05 Thread Gabriele
Gabriele added the comment: Hi Eric, I think is a bug and not a simple coding error. python is adding new value into another key in a dictionary when the key is not called. I updated my code (check "programTEST.py") that can replicate perfectly my problem. Please try my program and let me

[issue38984] Value add to the wrong key in a dictionary

2019-12-05 Thread Gabriele
Change by Gabriele : Added file: https://bugs.python.org/file48760/programTEST.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue38984] Value add to the wrong key in a dictionary

2019-12-05 Thread Eric V. Smith
Eric V. Smith added the comment: This is almost certainly not a bug in Python. The bug tracker isn't for giving help with your code. I suggest you ask on the python-list mailing list https://mail.python.org/mailman/listinfo/python-list If you still think this is a bug in Python, you should c

[issue38984] Value add to the wrong key in a dictionary

2019-12-05 Thread Gabriele
New submission from Gabriele : hello, I found this strange issue in my program: I’m reading a file with 5 columns separated by ‘;’ . Columns 3,4 and 5 can have multiple values and in this case, are separated by ‘,’ . Some values in column 3 can be repeated in each line in the same column. Goal