On 3/2/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > What is the reasoning behind allowing the raise of a tuple -- but > really only raising its (recursively) first element? > > It seems to have been added (with different spelling) in 1991 (rev > 2625) as the only alternative to string exceptions. (You couldn't > raise a class or instance.) I assume it was kept for backwards > compatibility. > > Were there other reasons, or should this be removed in python 3?
PEP 3109 already talks about removing this in Python 3. This will bring "raise" into line with generator.throw(), which already disallows this. Collin Winter _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com