Again, please keep this thread on python-ideas. If people there agree that this is a very common use case and find a syntax that is not ugly, it will be time to come back to python-dev. Thanks.