def stdstring_args(elem):
    if elem.argstring == '[]':
        return False
return 'std::string' in null2string(elem.vartype)
memberdef_list = [elem for elem in from_cache(classname, 'memberdefs') if
    stdstring_args(elem)]
Pythonic Style for Multiline List Comprehension