Guido van Rossum wrote: > Sure; or perhaps better > > try: > pos = pos.__index__() > except AttributeError as err: > raise TypeError("an integer is required") from err
raise from err? *searching* 'The “from” clause is used for exception chaining, which is not documented yet.' Ah! The sentence explains why I've not heard from the new feature yet. :) Christian _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins