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\Downloads>C:\Python34\python bug.py
INSIDE1 INSIDE
INSIDE1 INSIDE
db
-----
C:\Users\r0b3\Downloads>C:\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 <[email protected]>
<http://bugs.python.org/issue21631>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com