With or Using

Tim Howarth tim at worthy.demon.co.uk
Fri Apr 20 03:28:29 EDT 2001


In message <mailman.987739112.22095.python-list at python.org>
          Carlos Ribeiro <cribeiro at mail.inet.com.br> wrote:

> At 16:11 18/04/01 +0000, David C. Ullrich wrote:
> >It's in Delphi all right. Now find five Delphi experts and ask them
> >whether they think it's a good idea.
> 
> 
> Delphi uses static types. So it is possible to know, in a unambiguous way, 
> what member is being assigned in a "with" clause.

> Python uses dynamic types. It is impossible to know in advance which 
> attribute will be referenced at runtime. Member attributes may be added or 
> removed from objects on the fly. This would make it impossible to know, 
> from a simple reading, what attribute is being read - a local one, a global 
> one, or a member attribute.

Thanks, a sensible reason/explanation for it not be a good idea for
Python.

-- 
___
 |im    ---- ARM Powered ----



More information about the Python-list mailing list