Author Robert.w
Recipients Robert.w, SilentGhost, r.david.murray, rhettinger
Date 2014-06-02.16:28:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401726519.84.0.478016270459.issue21631@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-02 16:28:39Robert.wsetrecipients: + Robert.w, rhettinger, r.david.murray, SilentGhost
2014-06-02 16:28:39Robert.wsetmessageid: <1401726519.84.0.478016270459.issue21631@psf.upfronthosting.co.za>
2014-06-02 16:28:39Robert.wlinkissue21631 messages
2014-06-02 16:28:39Robert.wcreate