Python on 5.1 is not built so it contains the modules that allow access to products, such as Berkley DB and the GNU MP libraries. The python-1.5.1-5.i386.rpm for rawhide appears not to support these libraries. Even though GNU MP now has an RPM in rawhide. I can't comment on 5.2 yet. This can be fixed by a configuration option at compile time. Doing so is easy and would increase the usefullness of python on RedHat significantly.
RawHide is meant to be developmental and is not always in sync with the actual Red Hat distribution. Let us know is this problem exists in the normal 5.2 distribution.
Yep. Python in 5.2 has no access to the gmp libraries.
This has been assigned to a developer for further review.
I added the bsd db interface (the only db interface we didn't ship; actually links against the same library as the dbm interface) and the gmp interface. Fixed in python-1.5.1-8. This fix will not be made an erratum for Red Hat Linux 5.2, but will be available in RawHide and in subsequent releases.