Re: problem with change to exceptions
- From: Alex Popescu <nospam.themindstorm@xxxxxxxxx>
- Date: Sat, 28 Jul 2007 00:39:18 +0000 (UTC)
Neal Becker <ndbecker2@xxxxxxxxx> wrote in
news:f8e0g4$o1u$1@xxxxxxxxxxxxx:
Alex Popescu wrote:
Neal Becker <ndbecker2@xxxxxxxxx> wrote in
news:f8dspe$fm2$1@xxxxxxxxxxxxx:
[snip...]
Yes, args is None. So the assignment:
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.
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.
.
- Prev by Date: Re: Factory pattern again
- Next by Date: Re: removing items from a dictionary ?
- Previous by thread: Re: problem with change to exceptions
- Next by thread: Re: problem with change to exceptions
- Index(es):
Relevant Pages
|