Author vstinner
Recipients alexandre.vassalotti, serhiy.storchaka, vstinner
Date 2017-01-25.12:16:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485346599.43.0.0120936097954.issue29368@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2017-01-25 12:16:39vstinnersetrecipients: + vstinner, alexandre.vassalotti, serhiy.storchaka
2017-01-25 12:16:39vstinnersetmessageid: <1485346599.43.0.0120936097954.issue29368@psf.upfronthosting.co.za>
2017-01-25 12:16:39vstinnerlinkissue29368 messages
2017-01-25 12:16:39vstinnercreate