orlnub123 <orlnub...@gmail.com> added the comment:

I take back my previous suggestion, I agree that documenting it in setattr() 
(and **kwargs) is the way to go. It's obvious that you can assign anything to 
the __dict__, since it represents a dict, but setattr() is more ambiguous.
'Anything' was the key word for me here. For example you can assign ints to 
__dict__ and it won't complain but try to do the same with setattr()/getattr() 
and it results in an error.

----------

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

Reply via email to