◐ Shell
clean mode source ↗

Message 194430 - Python tracker

This smells like a new feature to me (it's certainly a fairly significant change in behaviour) and isn't appropriate for backporting to 2.7.

It can however go into unittest2.

I agree with David that a destructive iteration using pop is more likely to cause backwards-compatibility issues.