parent a empty to an object with python

Thanks to all.
Now as I become parent a empty to an object with python?
Renzo

This is what I came up with. I just started learning python myself, but I think it’s sound:


import Blender

object = Blender.Object.Get("Object")
empty = Blender.Object.Get("Empty")
#the following is to create an objList (1 element) so that makeParent'll work
objList = [empty]

object.makeParent(objList)

Thanks