<div dir="ltr"><div><div><div><div><div><div><div><div><div>> So is there anything left of the assignment-decorator proposal, or is<br>
> it completely withdrawn?<br><br></div>I think this sums the current open ends up:<br><br>- Namespace variables decoration was dismissed by one of Steven's posts, but is actually something that might be wanted (via being able to put descriptors into namespaces that have a __dict__ accessor (e.g. modules))<br></div>- Variable decoration can be more clear about descriptor/value difference at assignment<br></div>- Giving property objects access to their variable's name (e.g. via __name__) like functions have would open up quite a bit of possibilities, and would mean decorators would get quite a bit more power than what they have.<br><br></div><div>Something that I had said earlier, but what went on a sidepath<br></div>- Decorators may directly *deep* set the behaviour of the variable, and with it set the further behaviour of the variable (in the same scope). Such that<br> <br></div> @decorator<br></div> var = 20<br> <br></div> var = 40<br> <br></div> will not reset var to 40, but the var = 40 goes through the descriptor (if applied).<br></div></div>