One of the arguments is named file . Then your script refers to the variable named file . I don't know the answer off the top of my head. I'd have to try it to see. And if I did try it, odds are excellent that I'd forget later.
Ambiguity is very, very bad.
If I, a person who's been working in this environment for years, don't know what would happen, then other people won't either. And it's likely that you yourself will forget. I'm not saying never use the with statement.