Beginners question.

Alex Martelli aleaxit at yahoo.com
Wed Sep 1 07:26:23 EDT 2004


Player <asif at go-away-spammer.com> wrote:
  ...
>     if item == type(list):

It's very unlikely that the item will equal the type of list (which is
the builtin metaclass 'type' itself).  You presumably mean:

    if isinstance(item, list):


Alex



More information about the Python-list mailing list