> 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
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
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
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
>
>
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
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
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():
>
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