def get_type(atype, size=None):
if atype.startswith('<STR_LIT>'):<EOL><INDENT>atype = atype.replace('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>res = TYPE_DESCRIPTOR.get(atype.lstrip('<STR_LIT>'))<EOL>if res is None:<EOL><INDENT>if atype[<NUM_LIT:0>] == '<STR_LIT:L>':<EOL><INDENT>res = atype[<NUM_LIT:1>:-<NUM_LIT:1>].replace('<STR_LIT:/>', '<STR_LIT:.>')<EOL><DEDENT>elif atype[<NUM_LIT:0>] == '<STR_LIT:[>':<EOL><INDENT>if size is None:<EOL><INDENT>res = '<STR_LIT>' % get_type(atype[<NUM_LIT:1>:])<EOL><DEDENT>else:<EOL><INDENT>res = '<STR_LIT>' % (get_type(atype[<NUM_LIT:1>:]), size)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>res = atype<EOL><DEDENT><DEDENT>return res<EOL>
Retrieve the type of a descriptor (e.g : I)