Set Smooth / Set Solid in script?

How can I find out if a mesh has been “set smooth” or “set solid” from a python script? What exacty do those buttons do to the mesh “behind the scenes”?

Thanks

reed

A mesh can have a mixture of smooth and non-smooth faces. Check the NMFace variable smooth.
http://www.blender.org/modules/documentation/232PythonDoc/NMesh.NMFace-class.html