How to make a sphere using python ?

Is there a special fonction in python to create a sphere by giving :
the pos x y z of its center and the radius of the sphere ?

Thanks

Two tips :

one for blender 2.23
and one for blender 2.27.

For Blender 2.27, it looks like this:


# ------------------------
#  jm soler juillet 2003
# 
# an object mesh named 'Sphere'
# is supposed to exist in the
# blend file.
#------------------------

import Blender
from Blender import Object
import math

n=12
rayon=2.0
for i in range(2*n):
    S=Blender.NMesh.New()
    O=Blender.NMesh.PutRaw(S)
    Op=Blender.Object.Get(O.name)
    Op.shareFrom(Object.Get('Sphere'))

    Op.loc=(math.cos(i*math.pi/n)*rayon,
            math.sin(i*math.pi/n)*rayon,
            math.cos(i*math.pi/n*2)*rayon+5.0)

    t=math.sin(i*math.pi/n*2)+0.1
    Op.size=(t,t,t)