Python equivalent to Modelbuilder Iterator (Iterate)

Discussion created by dms8md23 on Sep 15, 2011
Latest reply on Sep 15, 2011 by rafaelr
I often use iterate feature class and other iterations in modelbuilder. Can I replicate that easily in Python? It doesn't export the code so I have no template on how to create a .py script that does the same geoprocessing to every feature class in a feature dataset, for example.

I apologize if this was posted already but I could not find it using the Search Forums tool.