In article <mailman.3674.1248461573.8015.python-l...@python.org>,
 Terry Reedy <tjre...@udel.edu> wrote:

> Better:    if isinstance(x, (int, float, complex)):

I never noticed this before, but it seems odd that the second argument to 
isinstance() should be a tuple.  Using the normal arguments made about 
tuples vs. lists, it seems like a list would be the right data structure 
here.  I suppose a set would be even more right, but (I'm pretty sure) 
isinstance() predates sets.

I'm curious why a tuple was chosen.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to