Python Feature Request: Add the "using" keyword which works like "with" in Visual Basic

jamadagni samjnaa at gmail.com
Sat Apr 14 09:34:19 EDT 2007


> Personally, I'd never use it.

You are free to avoid using it of course. :)

> In more complex modules, when you are
> looking for, e. g., self.myVar and anotherObject.myVar,
> this "using" statement decreases readability and maintainability
> (in full text searching). IMHO.

Why? Just search for self and you turn up using self. Just scan down
(the block) and you get myVar. Similarly for anotherObject.myVar.

Of course, you lose the possibility of just searching for self.myVar
-- something lost, something gained, IMHO.




More information about the Python-list mailing list