def cython_enums():
 lines = []
 for name in all_names:
  if no_prefix(name):
   lines.append('enum: ZMQ_{0} "{0}"'.format(name))
  else:
   lines.append('enum: ZMQ_{0}'.format(name))
 return dict(ZMQ_ENUMS='\n    '.join(lines))

def cython_enums ( ) : lines = [ ] for name in all_names : if no_prefix ( name ) : lines . append ( 'enum: ZMQ_{0} "{0}"' . format ( name ) ) else : lines . append ( 'enum: ZMQ_{0}' . format ( name ) ) return dict ( ZMQ_ENUMS = '\n    ' . join ( lines ) )
generate enum: zmq_const block for constant_enums .