PEP318

Arthur ajsiegel at optonline.net
Fri Aug 13 07:17:04 EDT 2004


 
> On Thu, 12 Aug 2004 17:03:19 GMT, Arthur <ajsiegel at optonline.com> wrote:
> > >def foo ():
> > >   whatever
> > >foo = decorator (foo)
> > >
> > >is that you have to type the word "foo" three times.
> >
> > Big f**king deal - all things considered. ;)
> 
> When this name is a PyObjC name that might be 70 characters long,
> it becomes a big deal.

I had asked this before:

Does

def __f(something):
    dosomething

the_name_I_really_want_to_call=transform(__f)

work?

It is not a destructive transform of __f, but why is that important?

What else am I missing?

I thought I read the PyObjC folks saying that they saw use cases for a
decorator syntax for their project - to be sure - but that was
(mis)interpreted as meaning that they saw it as important for their project,
which they don't.  

I could be wrong in my interpretation here.

And I know there *are* folks who do consider the decorator facility as
essential for their projects, but unfortunately it was never clear to me on
what basis they were concluding that. 

Other developers involved in very important Python projects have noted that
they have wish lists as well - just less will to lobby at python-dev.

Design by democracy sucks.

Design by squeaky wheel ain't great either.

Art    




More information about the Python-list mailing list