Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

On thinking more about this the wraps argument provides a way to wrap the calls 
for the mock to a given object. So when an attribute not present in the wrapped 
object is being accessed then it should act like the attribute is not present. 
Falling back to the default value like previous case would help but that will 
pose the question over whether the value is from the wrapped object's attribute 
or from the default value for the magic method that the user could never know. 
This could be better clarified in the docs I suppose which I missed in the 
previous issue. 

Thoughts on this fallback behavior?

----------

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

Reply via email to