[Python-Dev] PEP 318 - generality of list; restrictions on elements

Guido van Rossum guido at python.org
Wed Mar 10 10:04:38 EST 2004


> > I'd be very surprised if the interpreter cared that a decorator
> > returned a callable; what should it care?
> 
> The interpreter doesn't care; *people* care.  That's precisely why it
> should be a documented requirement.

So decorators couldn't be used to create read-only properties?

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list