exception question

Gonçalo Rodrigues op73418 at mail.telepac.pt
Mon Sep 1 18:01:12 EDT 2003


On 1 Sep 2003 20:35:08 GMT, bokr at oz.net (Bengt Richter) wrote:

>On Sun, 31 Aug 2003 22:22:15 +0100, Gonçalo Rodrigues <op73418 at mail.telepac.pt> wrote:
>
>>Hi,
>>
>>For error processing I found convenient maintaining a dictionary where
>>the keys are exception *classes* and the values are callables. Of
>>course, for this to work, exception classes have to be hashable which
>>I happily found that they were. So my question is, can I count on this
>>behaviour? Or is this behaviour I should not count on? (I found
>>nothing on the docs about it, thus the question).
>>
>Would the class name strings work for you, to avoid the issue?
>

Yes! Thanks! It's not as pretty but it will work perfectly.

I may still harass the python-dev folks as suggested though ;-)

With my best regards,
G. Rodrigues




More information about the Python-list mailing list