Re: [Python-Dev] properties with decorators (was: code blocks using

2005-03-17 Thread Josiah Carlson
Jp Calderone <[EMAIL PROTECTED]> wrote: > > On Thu, 17 Mar 2005 09:01:27 -0800, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > > Nick Coghlan <[EMAIL PROTECTED]> wrote: > > > > > > Josiah Carlson wrote: > > > > > > > > [snip] > > > > > > > > I think properties are the most used case where thi

Re: [Python-Dev] properties with decorators (was: code blocks using 'for' loops and generators)

2005-03-17 Thread Jp Calderone
On Thu, 17 Mar 2005 09:01:27 -0800, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > Nick Coghlan <[EMAIL PROTECTED]> wrote: > > > > Josiah Carlson wrote: > > > > > > [snip] > > > > > > I think properties are the most used case where this kind of thing would > > > be nice. Though the only thing th

Re: [Python-Dev] properties with decorators (was: code blocks using 'for' loops and generators)

2005-03-17 Thread Josiah Carlson
Nick Coghlan <[EMAIL PROTECTED]> wrote: > > Josiah Carlson wrote: > > Samuele Pedroni <[EMAIL PROTECTED]> wrote: > [snip] > >>well, I think some people desire a more streamlined way of writing code > >>like: > >> > >>def f(...) > >>... > >>def g(...) > >>... > >>x = h(...,f,g) > >> > >>[property,

Re: [Python-Dev] properties with decorators (was: code blocks using 'for' loops and generators)

2005-03-17 Thread Nick Coghlan
Josiah Carlson wrote: Samuele Pedroni <[EMAIL PROTECTED]> wrote: [snip] well, I think some people desire a more streamlined way of writing code like: def f(...) ... def g(...) ... x = h(...,f,g) [property, setting up callbacks etc are cases of this] I think properties are the most used case where