Object's nesting scope

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Aug 28 18:41:35 CEST 2009

En Thu, 27 Aug 2009 12:43:55 -0300, zaur <szport at gmail.com> escribió:
> On 27 авг, 19:19, Carl Banks <pavlovevide... at gmail.com> wrote:
>> On Aug 27, 8:01 am, zaur <szp... at gmail.com> wrote:
>> > On 27 авг, 18:34, Carl Banks <pavlovevide... at gmail.com> wrote:
>> > > The idea has been
>> > > discussed in various forms here quite a bit over the years.  I doubt
>> > > there's any chance it'll be accepted into Python, because it goes
>> > > against one of the main design points of Python: that attributes
>> > > should always be accessed explicitly.
> In my opinion idea of using object's dictionary as nested scope is
> more about structuring code blocks rather than just saving typing and
> implicit attribute access.

But you *are* doing implicit attribute access. Anyway, the topic was  
raised and rejected several times in the past; see this recent thread in  
the python-ideas list:

Gabriel Genellina

More information about the Python-list mailing list