On Apr 14, 5:06 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:

> I can't see how it is going to save you any typing over what you can
> already do.
>
> The suggested example:

The suggested example is only a small case. I realize that the main
usage would be when there are a lot of repetitive usages when the five
characters "using", the space and the colon at the end would be worth
the full typing.

> (259 characters including newlines but not leading indents).
> would become:
> (251 characters including newlines but not leading indents).

So there *is* gain even in this small case. It's a matter of avoiding
the bore and potential scope for typos in repetitive typing.

> If you are going to reference self.quit a lot of times then it makes
> sense to also assign it to a local variable and then you already get
> even fewer characters (239):

But you realize readability decreases considerably.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to