[Python-ideas] Assignment decorators (Re: The Descriptor Protocol...)

Joao S. O. Bueno jsbueno at python.org.br
Tue Mar 8 02:08:53 CET 2011

On Mon, Mar 7, 2011 at 9:56 PM, Larry Hastings <larry at hastings.org> wrote:

> Outside class scope, classobject is None.  I think you want the classobject
> there so you can cache information in it, like using the variable
> declarations to build up a per-class database schema.

What you are calling "classobject" simply don't exist at this stage
wen creating a new class.
Although, the local variables dictionary collect the information
needed to create the class.
We could think if there are actually use cases for having this
dictionary alongside the variable name to
the callable to use.


This is Python, where function calls has "(" .

More information about the Python-ideas mailing list