problem with change to exceptions
Alex Popescu
nospam.themindstorm at gmail.com
Fri Jul 27 20:39:18 EDT 2007
Neal Becker <ndbecker2 at gmail.com> wrote in
news:f8e0g4$o1u$1 at sea.gmane.org:
> Alex Popescu wrote:
>
>> Neal Becker <ndbecker2 at gmail.com> wrote in
>> news:f8dspe$fm2$1 at sea.gmane.org:
>>
>
> [snip...]
>
>>>
>>
>> You can pass to the exception:
>> a) a string (it will become the message)
>> b) a tuple of values (can it be a list also?)
>>
>> In your case there is no message, no values so args is NoneType.
>>
> Yes, args is None. So the assignment:
> self.args = args
>
> should set self.args to None. Nothing wrong there, and what has this
> got to do with NoneType being iterable?
>
args are used to generate the traceback when a message was not provided.
./alex
--
.w( the_mindstorm )p.
More information about the Python-list
mailing list