STINNER Victor added the comment:
What is the cost of adding an extra isinstance(d, collections.Sequence) check?
It would be closer the current design ("white list" of types), safer and avoid
bad surprises.
But Python has a long tradition of duck typing, so maybe isinstance() can be
seen as overkill :-)
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29368>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com