loop_indices, BMesh
import bpy
ob = bpy.context.active_object
for polygon in ob.data.polygons:
for index in polygon.loop_indices:
print(index)
#
import bpy
ob = bpy.context.active_object
for polygon in ob.data.polygons:
for vert in polygon.vertices:
print(vert)