paul_kon...@dell.com wrote:
>
> Nit: the Pythonic recommended way of doing this is "if isinstance (item, 
> tuple):"
>
> The difference is that this will also work if item is an instance of a 
> subclass of "tuple" while the original code does not handle that case.  For 
> this code, that might not be an interesting scenario, but in other places it 
> might be.  It's worth getting into the habit of using "isinstance".

Well said.  I have several bad Python habits that I should work on
eliminating...

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to