How to determine an object is "scriptable"
bruno at modulix
onurb at xiludom.gro
Thu Mar 30 09:54:48 EST 2006
abcd wrote:
> Richard Brodie wrote:
>
>>subscriptable: supports an indexing operator, like a list does.
>
> doesn't seem to be a builtin function or module...
It's not. Look no further.
> or is that just your
> definition of subscriptable?
It's a correct definition of 'subscriptable' in the context of the
Python programming language - as well as a good exemple of an implied
interface.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list