Andrew Dunai <a...@dun.ai> added the comment:

I was considering wrapping a `unittest.mock._Call` class definition within a 
function that would contain name & parent as local variables (arguments). Thus 
they would be accessible within the `_Call` class, but wouldn't be accessible 
from the outside. However this would make them inaccessible from other 
instances of `_Call`. So I think I'll stick to the more trivial solution of 
renaming them to `_mock_name` and `_mock_parent` to conform to the rest of the 
module :)

----------

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

Reply via email to