def _batch_create_object(*objparams):
 dbobjs = [ObjectDB(**objparam[0]) for objparam in objparams]
 objs = []
 for (iobj, obj) in enumerate(dbobjs):
  objparam = objparams[iobj]
  obj._createdict = {'permissions': objparam[1], 'locks': objparam[2], 'aliases': objparam[3], 'nattributes': objparam[4], 'attributes': objparam[5], 'tags': objparam[6]}
  obj.save()
  for code in objparam[7]:
   if code:
    exec code in {}, {'evennia': evennia, 'obj': obj}
  objs.append(obj)
 return objs

def _batch_create_object ( * objparams ) : dbobjs = [ ObjectDB ( ** objparam [ 0 ] ) for objparam in objparams ] objs = [ ] for ( iobj , obj ) in enumerate ( dbobjs ) : objparam = objparams [ iobj ] obj . _createdict = { 'permissions' : objparam [ 1 ] , 'locks' : objparam [ 2 ] , 'aliases' : objparam [ 3 ] , 'nattributes' : objparam [ 4 ] , 'attributes' : objparam [ 5 ] , 'tags' : objparam [ 6 ] } obj . save ( ) for code in objparam [ 7 ] : if code : exec code in { } , { 'evennia' : evennia , 'obj' : obj } objs . append ( obj ) return objs
this is a cut-down version of the create_object() function .