[Python-Dev] Re: 2.4a2, and @decorators (original) (raw)

Jim Fulton jim at zope.com
Wed Aug 4 16:31:57 CEST 2004


Andrew McNamara wrote:

An advantage of the @ syntax is than it makes the complexiity separable and ignorable for someone learning/teaching basic Python,

I don't agree that they are ignorable. People will see them in code and will have to understand what they mean. Given sme examples I've seen here, this will sometimes be a significant chalenge. There are a number of "advanced" features in python that could be a barrier to understanding for new users, but which are rarely seen in practice - metaclasses being the classic example. I imagine these features are rarely seen because most people don't understand them, and those that do have the good taste not to use them gratuitously.

This feature won't be rarely used. Class and static methods and properties are created fairly often, certainly far more often than meta classes.

Jim

-- Jim Fulton mailto:jim at zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org



More information about the Python-Dev mailing list