def constants_pyx():
 all_lines = []
 assign_lines = []
 for name in all_names:
  if (name == 'NULL'):
   assign_lines.append("globals()['NULL'] = ZMQ_NULL")
  else:
   assign_lines.append('{0} = ZMQ_{0}'.format(name))
  all_lines.append('  "{0}",'.format(name))
 return dict(ASSIGNMENTS='\n'.join(assign_lines), ALL='\n'.join(all_lines))

def constants_pyx ( ) : all_lines = [ ] assign_lines = [ ] for name in all_names : if ( name == 'NULL' ) : assign_lines . append ( "globals()['NULL'] = ZMQ_NULL" ) else : assign_lines . append ( '{0} = ZMQ_{0}' . format ( name ) ) all_lines . append ( '  "{0}",' . format ( name ) ) return dict ( ASSIGNMENTS = '\n' . join ( assign_lines ) , ALL = '\n' . join ( all_lines ) )
generate const = zmq_const and __all__ for constants .