def get_list_payload(context, builder, list_type, value):
 payload_type = types.ListPayload(list_type)
 payload = context.nrt.meminfo_data(builder, value.meminfo)
 ptrty = context.get_data_type(payload_type).as_pointer()
 payload = builder.bitcast(payload, ptrty)
 return context.make_data_helper(builder, payload_type, ref=payload)

def get_list_payload ( context , builder , list_type , value ) : payload_type = types . ListPayload ( list_type ) payload = context . nrt . meminfo_data ( builder , value . meminfo ) ptrty = context . get_data_type ( payload_type ) . as_pointer ( ) payload = builder . bitcast ( payload , ptrty ) return context . make_data_helper ( builder , payload_type , ref = payload )
given a list value and type .