Changeset 8b8a020 for python/lib
- Timestamp:
- Nov 26, 2015, 2:47:57 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 770b9e7
- Parents:
- a49a3f0
- git-author:
- Nils Philippsen <nils@tiptoe.de> (11/26/15 00:09:08)
- git-committer:
- Nils Philippsen <nils@tiptoe.de> (11/26/15 14:47:57)
- Location:
- python/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_pyobject.py
ra49a3f0 r8b8a020 71 71 returns: [['int', 'argc'], ['char **','argv']] 72 72 """ 73 return map(split_type, get_params(proto))73 return list(map(split_type, get_params(proto))) 74 74 75 75 def get_return_type(proto): -
python/lib/generator.py
ra49a3f0 r8b8a020 12 12 cpp_output = filter(lambda y: len(y) > 1, cpp_output) 13 13 cpp_output = filter(lambda y: not y.startswith('#'), cpp_output) 14 cpp_output = list(cpp_output) 14 15 15 16 i = 1 … … 86 87 object_methods = [a.strip() for a in object_methods] 87 88 object_methods = filter(lambda x: not x.startswith('typedef'), object_methods) 89 object_methods = list(object_methods) 88 90 #for method in object_methods: 89 91 # write_msg(method) 90 new_methods = filter(lambda x: 'new_'+object_name in x, object_methods) 92 new_methods = list(filter( 93 lambda x: 'new_'+object_name in x, object_methods)) 91 94 if len(new_methods) > 1: 92 95 write_msg("-- WARNING: more than one new method for", object_name) … … 99 102 write_msg(method) 100 103 101 del_methods = filter(lambda x: 'del_'+object_name in x, object_methods) 104 del_methods = list(filter( 105 lambda x: 'del_'+object_name in x, object_methods)) 102 106 if len(del_methods) > 1: 103 107 write_msg("-- WARNING: more than one del method for", object_name) … … 107 111 write_msg("-- WARNING: no del method for", object_name) 108 112 109 do_methods = filter(lambda x: object_name+'_do' in x, object_methods) 113 do_methods = list(filter( 114 lambda x: object_name+'_do' in x, object_methods)) 110 115 if len(do_methods) > 1: 111 116 pass … … 136 141 other_methods = filter(lambda x: x not in get_methods, other_methods) 137 142 other_methods = filter(lambda x: x not in set_methods, other_methods) 143 other_methods = list(other_methods) 138 144 139 145 if len(other_methods) > 0:
Note: See TracChangeset
for help on using the changeset viewer.