In article <[email protected]>, Terry Reedy <[email protected]> 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
