Next / Previous / Contents / Shipman's homepage

19. Sox._intProcessor()

This function implements the interface described in Section 8.1, “content-processor for the int type. The value is coerced to Unicode and appended to the contentList.

sox.py
# - - -   S o x . _ i n t P r o c e s s o r

    def _intProcessor(self, item, contentList, attribs):
        '''content-processor for type int

          [ type(item) is int ->
              contentList  +:=  unicode(str(item)) ]
        '''
        contentList.append(unicode(str(item)))