Re: Object's nesting scope

2009-08-31 Thread Bruno Desthuilliers
zaur a écrit : On 28 авг, 16:07, Bruno Desthuilliers wrote: zaur a écrit : On 26 авг, 17:13, "Diez B. Roggisch" wrote: Whom am we to judge? Sure if you propose this, you have some usecases in mind - how about you present these Ok. Here is a use case: object initialization. For example, p

Re: Object's nesting scope

2009-08-30 Thread zaur
On 30 авг, 03:22, "Gabriel Genellina" wrote: > En Sat, 29 Aug 2009 04:34:48 -0300, zaur escribió: > > > > > On 29 авг, 08:37, "Gabriel Genellina" wrote: > >> En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió: > >> > On 28 авг, 16:07, Bruno Desthuilliers >> > 42.desthuilli...@websiteburo.invali

Re: Object's nesting scope

2009-08-29 Thread Gabriel Genellina
En Sat, 29 Aug 2009 04:34:48 -0300, zaur escribió: On 29 авг, 08:37, "Gabriel Genellina" wrote: En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió: > On 28 авг, 16:07, Bruno Desthuilliers 42.desthuilli...@websiteburo.invalid> wrote: >> zaur a écrit : >> > Ok. Here is a use case: object initi

Re: Object's nesting scope

2009-08-29 Thread zaur
On 29 авг, 08:37, "Gabriel Genellina" wrote: > En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió: > > > > > On 28 авг, 16:07, Bruno Desthuilliers > 42.desthuilli...@websiteburo.invalid> wrote: > >> zaur a écrit : > > >> > Ok. Here is a use case: object initialization. > > >> > For example, > > >

Re: Object's nesting scope

2009-08-28 Thread Gabriel Genellina
En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió: On 28 авг, 16:07, Bruno Desthuilliers wrote: zaur a écrit : > Ok. Here is a use case: object initialization. > For example, > person = Person(): >   name = "john" >   age = 30 >   address = Address(): >      street = "Green Street" >      n

Re: Object's nesting scope

2009-08-28 Thread Mel
zaur wrote: > On 28 авг, 16:07, Bruno Desthuilliers 42.desthuilli...@websiteburo.invalid> wrote: >> zaur a écrit : >> >> >> >> > On 26 авг, 17:13, "Diez B. Roggisch" wrote: >> >> Whom am we to judge? Sure if you propose this, you have some usecases >> >> in mind - how about you present these >>

Re: Object's nesting scope

2009-08-28 Thread zaur
On 28 авг, 16:07, Bruno Desthuilliers wrote: > zaur a écrit : > > > > > On 26 авг, 17:13, "Diez B. Roggisch" wrote: > >> Whom am we to judge? Sure if you propose this, you have some usecases in > >> mind - how about you present these > > > Ok. Here is a use case: object initialization. > > > For

Re: Object's nesting scope

2009-08-28 Thread Gabriel Genellina
En Thu, 27 Aug 2009 12:43:55 -0300, zaur escribió: On 27 авг, 19:19, Carl Banks wrote: On Aug 27, 8:01 am, zaur wrote: > On 27 авг, 18:34, Carl Banks 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

Re: Object's nesting scope

2009-08-28 Thread Bruno Desthuilliers
zaur a écrit : On 26 авг, 17:13, "Diez B. Roggisch" wrote: Whom am we to judge? Sure if you propose this, you have some usecases in mind - how about you present these Ok. Here is a use case: object initialization. For example, person = Person(): name = "john" age = 30 address = Addres

Re: Object's nesting scope

2009-08-27 Thread zaur
On 27 авг, 19:19, Carl Banks wrote: > On Aug 27, 8:01 am, zaur wrote: > > > On 27 авг, 18:34, Carl Banks 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

Re: Object's nesting scope

2009-08-27 Thread Carl Banks
On Aug 27, 8:01 am, zaur wrote: > On 27 авг, 18:34, Carl Banks 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 attr

Re: Object's nesting scope

2009-08-27 Thread zaur
On 27 авг, 18:34, Carl Banks wrote: > On Aug 26, 5:51 am, zaur wrote: > > > > > Hi folk! > > > What do you think about idea of "object's nesting scope" in python? > > > Let's imaging this feature, for example, in this syntax: > > >

Re: Object's nesting scope

2009-08-27 Thread Carl Banks
On Aug 26, 5:51 am, zaur wrote: > Hi folk! > > What do you think about idea of "object's nesting scope" in python? > > Let's imaging this feature, for example, in this syntax: > > obj=: >       > > or > > : >     > > That's

Re: Object's nesting scope

2009-08-27 Thread zaur
On 26 авг, 23:56, MRAB wrote: > zaur wrote: > > On 26 авг, 21:11, "Rami Chowdhury" wrote: > >>> person = Person(): > >>>   name = "john" > >>>   age = 30 > >>>   address = Address(): > >>>      street = "Green Street" > >>>      no = 12 > >> Can you clarify what you mean? Would that define a Pers

Re: Object's nesting scope

2009-08-26 Thread ryles
On Aug 26, 8:51 am, zaur wrote: > Hi folk! > > What do you think about idea of "object's nesting scope" in python? > > Let's imaging this feature, for example, in this syntax: > > obj=: >       > > or > > : >     > > That's

Re: Object's nesting scope

2009-08-26 Thread MRAB
zaur wrote: On 26 авг, 21:11, "Rami Chowdhury" wrote: person = Person(): name = "john" age = 30 address = Address(): street = "Green Street" no = 12 Can you clarify what you mean? Would that define a Person class, and an Address class? I suppose that someone already define cl

Re: Object's nesting scope

2009-08-26 Thread zaur
On 26 авг, 21:11, "Rami Chowdhury" wrote: > > person = Person(): > >   name = "john" > >   age = 30 > >   address = Address(): > >      street = "Green Street" > >      no = 12 > > Can you clarify what you mean? Would that define a Person class, and an   > Address class? I suppose that someone alr

Re: Object's nesting scope

2009-08-26 Thread Rami Chowdhury
person = Person(): name = "john" age = 30 address = Address(): street = "Green Street" no = 12 Can you clarify what you mean? Would that define a Person class, and an Address class? If you are expecting those classes to be already defined, please bear in mind that if you w

Re: Object's nesting scope

2009-08-26 Thread zaur
On 26 авг, 17:13, "Diez B. Roggisch" wrote: > Whom am we to judge? Sure if you propose this, you have some usecases in > mind - how about you present these Ok. Here is a use case: object initialization. For example, person = Person(): name = "john" age = 30 address = Address(): stree

Re: Object's nesting scope

2009-08-26 Thread Diez B. Roggisch
zaur wrote: > Hi folk! > > What do you think about idea of "object's nesting scope" in python? > > Let's imaging this feature, for example, in this syntax: > > obj=: > > > or > > : > > > That's means that

Object's nesting scope

2009-08-26 Thread zaur
Hi folk! What do you think about idea of "object's nesting scope" in python? Let's imaging this feature, for example, in this syntax: obj=: or : That's means that result object of evaluation is used as nested scope for evaluation. So is this id