generic pool
iterator 2.7 compat