Message4947

Author audetto
Recipients audetto
Date 2009-07-26.15:26:18
SpamBayes Score 9.576e-07
Marked as misclassified No
Message-id <1248621978.98.0.934992919637.issue1412@psf.upfronthosting.co.za>
In-reply-to
Content
The callback passed to sys.settrace is (sometimes) called with a bad 3rd
argument when an exception occurs.

According to
http://docs.python.org/library/sys.html

when there is an exception, arg is a tuple with 3 values.
In this case arg is

(<type 'exceptions.GeneratorExit'>, None, null)

and accessing arg[2] causes an error.

IndexError: index out of range: 2

I am not sure but the fact that arg[2] is "null" and not "None" might be
linked.
History
Date User Action Args
2009-07-26 15:26:18audettosetmessageid: <1248621978.98.0.934992919637.issue1412@psf.upfronthosting.co.za>
2009-07-26 15:26:18audettosetrecipients: + audetto
2009-07-26 15:26:18audettolinkissue1412 messages
2009-07-26 15:26:18audettocreate