Talin <[EMAIL PROTECTED]> writes:
> sequence( indexable ):
> -- an indexable in which the indexes are successive integers
> -- Test: isinstance( index_type, int )
I don't understand. How would this test distinguish [] being a
sequence from {} not being a sequence?
> mapping( indexable ):
> -- an indexable in which the indices are hashable values:
> -- Test: hashable( index_type )
> -- (Also test for immutable if its feasible)
And this on the contrary?
--
__("< Marcin Kowalczyk
\__/ [EMAIL PROTECTED]
^^ http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com