Try this documentation for the 2.5x API. I understand that despite the big warnings at the top, the most frequently used partitions are pretty stable. I have not tried it yet.
EDIT:
I think the corresponding bit is this section - it seems you are creating a list of vertex faces, etc. and pass it on to this. This seems to have changed from the most recent examples I can find. Try to look in the folder with your scripts - there may be an example that you can look at.
EDIT 2: I updated the link to point to current documents. The notes there suggest that there are probably better ways to do this now, but I haven't done any blender scripts for a long time, so I can't help anymore.
neil
source share