[issue21631] List/Dict Combination Bug
Robert w added the comment: banner C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0C:\Python33\python Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0C:\Python33\python bug.py bug.py:45: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert(False, Should be unreachable!) {'data': {'elements': ['83H', '0FAH', '9AH', '27H', '81H', '49H', '0CEH', '11H']}, 'type': 2}INSIDE False False True {'data': {'elements': ['83H', '0FAH', '9AH', '27H', '81H', '49H', '0CEH', '11H']}, 'type': 2}INSIDE False False True db {'data': {'elements': ['83H', '0FAH', '9AH', '27H', '81H', '49H', '0CEH', '11H']}, 'type': 2}INSIDE False False True (and so on, some lines with the expected output, see the attached file) Either im totaly nuts and do *something* wrong, or it is a very weird bug... Im _not_ some random noob from the inet who doesn't know what a bugtracker is. --- Seems to be a weird memory issue. --- I closed the first version of the issue because i was confused between the words issue and summaries because issues...are bugs... -- Added file: http://bugs.python.org/file35460/output.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21631] List/Dict Combination Bug
Changes by Robert w robert...@googlemail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21631] List/Dict Combination Bug
Robert w added the comment: i cutted it down = class EnumSectionContentType(object): DATABYTE = 2 DATADOUBLEWORD = 3 DATAWORD = 4 #LABEL = 0 def _getStringOfElements(elements): objectFileString = elements = [{'type': 2, 'data': {'elements': ['83H', '0FAH', '9AH', '27H', '81H', '49H', '0CEH', '11H']}}] for iterationElement in elements: objectFileString += INSIDE1 if iterationElement[type] == EnumSectionContentType.LABEL: objectFileString += iterationElement[data][labelname] + : + \n elif iterationElement[type] == EnumSectionContentType.DATABYTE: objectFileString += INSIDE + \n if iterationElement[type] == EnumSectionContentType.DATADOUBLEWORD: objectFileString += objectFileString + dd elif iterationElement[type] == EnumSectionContentType.DATABYTE: objectFileString += objectFileString + db return objectFileString print(_getStringOfElements(None)) = I don't expect any output, I expect a exception (because LABEL is not defined) but hell no... i get - C:\Users\r0b3\DownloadsC:\Python34\python bug.py INSIDE1 INSIDE INSIDE1 INSIDE db - C:\Users\r0b3\DownloadsC:\Python34\python Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21630] List Dict bug?
New submission from Robert w: outer for loop loops n 1 times, when it should loop one time. Variations are possible tht the bug doesn't occur. -- components: Interpreter Core files: bug.py messages: 219513 nosy: Robert.w priority: normal severity: normal status: open title: List Dict bug? type: behavior versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file35439/bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21630 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21630] List Dict bug?
Changes by Robert w robert...@googlemail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21630 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21631] List/Dict Combination Bug
New submission from Robert w: outer for loop loops more than one time, which should be impossible. -- components: Interpreter Core files: bug.py messages: 219514 nosy: Robert.w priority: normal severity: normal status: open title: List/Dict Combination Bug type: behavior versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file35440/bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com