with open(path) as input:
    for line in input:

Using with to create reference to opened file returned by open() so it could temporarily be assigned to input for the sole purpose of iterating its contents never sat very well with me. 
Now, given a generator function:

def iterwith(cm):
    with cm as context:
        if context is None:
            context = cm
        for item in context:
            yield item

The previous code can be turned into:

for line in iterwith(open(path)):

So, questions:
    - Is there anything inherently wrong with the idea, or does it exist?
    - Is it a generally useful tool, or are the examples limited to files?
    - Is it possible a more general mechanism could have value, such as:

for line in file with open(path) as file:

The preceding could be leveraged to different effect:

for line in file with locked(path):
    write(path + ".out", line)

    for line in input with nested(open(path),lock,open(opath)) as input,locked,output:

To revisit the original purpose of "with", this seems to cleanly address a very common scenario wherein:

resource = create_resource()
    for item in resource:
        do_something(resource, item)

# Standard with approach...
with create_resource() as resource:
    for item in resource:
resource, item)

# With for loop as context...
for item in resource with create_resource() as resource:

    do_something(resource, item)

And, given the translation into statements, maybe even crazy stuff... 

[line for line in file with open(path) as file]

J/K, I think.