On Jan 14, 4:14 pm, "Lambert, David W (S&T)" <lamber...@corning.com> wrote: > Please, why isn't a set permitted as the second argument to isinstance?
The Python development team might be open to adding it if you were to submit a patch. The use case is fairly obvious. I doubt any of them would respond to a wishlist request, though. As a workaround, you can just cast the set to a tuple like this: isinstance(x,tuple(s)) Carl Banks -- http://mail.python.org/mailman/listinfo/python-list