Mark Dickinson added the comment:

Unfortunately, I don't think the checking first approach can work either:  in 
the case where the object *does* accept assignments, it will now be assigned to 
twice.  If there are side-effects from those assignments, then that will change 
behaviour.

An example is the Enthought traits library, where assignment to a list item 
causes a notification to be fired;  with this change, listeners would now 
receive two events instead of one.

I suspect there just isn't a good solution here.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17973>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to