Type Hierarchies

Erno Kuusela erno-news at erno.iki.fi
Wed Feb 14 07:13:06 EST 2001


In article <982149142.9745 at master.nyc.kbcfp.com>, "Burkhard Kloss"
<bk at xk7.com> writes:

| def is_seq(a):
|     try:
|         len(a)
|         return 1
|     except:
|         return 0

len() also works on mappings.

  -- erno



More information about the Python-list mailing list