> > That's the point that I would make as well. What can you do with an > object that is only known to be Subscriptable? > > def do_subscriptable_things(obj): > if isinstance(obj, Subscriptable): > # Now what? >
Maybe if you want to use/abuse it as an alternative function calling syntax-- square brackets rather than parentheses. The language itself already contains one example of this: generic typing syntax. >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/6R2KCKYA3TXENDYS7UB7YBUV4NWIMS5C/ Code of Conduct: http://python.org/psf/codeofconduct/