Re: [Python-3000] Assignment decorators

2006-12-11 Thread Gustavo Niemeyer
> That just seems ugly. Decorators are fine for functions, methods (and Ugly!? Come on.. normal assignments are so nineties. Think about the amazing possibilities: @str @math.log @multiply(3) @add(2) a = 2 Who needs RPN!? That's FPN.. Forward Python Notation. Python will b

Re: [Python-3000] Assignment decorators

2006-12-09 Thread Jack Diederich
On Fri, Dec 08, 2006 at 11:58:38AM -0800, Brett Cannon wrote: > On 12/8/06, Talin <[EMAIL PROTECTED]> wrote: > > > >One other minor brainstorm before I head off to work: I'd like function > >decorators to work with assignment statements as well as 'def' statements. > > > >Use case: > > > >class

Re: [Python-3000] Assignment decorators

2006-12-08 Thread Jack Diederich
On Fri, Dec 08, 2006 at 11:58:38AM -0800, Brett Cannon wrote: > On 12/8/06, Talin <[EMAIL PROTECTED]> wrote: > > > >One other minor brainstorm before I head off to work: I'd like function > >decorators to work with assignment statements as well as 'def' statements. > > > >Use case: > > > >class

Re: [Python-3000] Assignment decorators

2006-12-08 Thread Calvin Spealman
On 12/8/06, Talin <[EMAIL PROTECTED]> wrote: > One other minor brainstorm before I head off to work: I'd like function > decorators to work with assignment statements as well as 'def' statements. > > Use case: > > class Foo: > >@private >def myfunc(): > pass > >

Re: [Python-3000] Assignment decorators

2006-12-08 Thread Nick Coghlan
Talin wrote: > One other minor brainstorm before I head off to work: I'd like function > decorators to work with assignment statements as well as 'def' statements. > > Use case: > > class Foo: > >@private >def myfunc(): > pass > >@private >selected

Re: [Python-3000] Assignment decorators

2006-12-08 Thread Brett Cannon
On 12/8/06, Talin <[EMAIL PROTECTED]> wrote: One other minor brainstorm before I head off to work: I'd like function decorators to work with assignment statements as well as 'def' statements. Use case: class Foo: @private def myfunc(): pass @private

Re: [Python-3000] Assignment decorators

2006-12-08 Thread Andrew McNabb
On Fri, Dec 08, 2006 at 09:48:04AM -0800, Talin wrote: > One other minor brainstorm before I head off to work: I'd like function= =20 > decorators to work with assignment statements as well as 'def' statements. >=20 > Use case: >=20 > class Foo: >=20 >@private >def myfunc(): >

Re: [Python-3000] Assignment decorators, anyone?

2006-06-12 Thread Steven Bethard
On 6/8/06, Greg Ewing <[EMAIL PROTECTED]> wrote: > I think I've come across a use case for @decorators > on assignment statements. > > I have a function which is used like this: > >my_property = overridable_property('my_property', "This is my property.") > > However, it sucks a bit to have to w