IsList?

Gerhard Häring gh_pythonlist at gmx.de
Mon Apr 8 03:50:14 EDT 2002


* Magnus Lie Hetland <mlh at vier.idi.ntnu.no> [2002-04-08 06:50 +0000]:
> In article <slrnab2b3b.1gd.gerhard at lilith.my-fqdn.de>, Gerhard
> =?iso-8859-15?Q?H=E4ring?= wrote:
> >John wrote in comp.lang.python:
> >> Hi, How can one know wheter var 'a' is list or not? Is there any
> >> IsList-like function?
> [snip lots of stuff]
> 
> If you want to check for sequences in general you can use the
> isSequenceType function:

See also this more recent post con operator.isSequence/Mapping/Type from
Tim Peters in 2001, which suggests Guidi still thinks they're bad:

http://groups.google.com/groups?selm=mailman.990826839.12032.python-list%40python.org

I also remember Alex Martelli argumenting against their use.

Gerhard
-- 
This sig powered by Python!
Außentemperatur in München: 1.9 °C      Wind: 1.8 m/s





More information about the Python-list mailing list