exception attributes

Erno Kuusela erno-news at erno.iki.fi
Sun Aug 19 17:53:54 CEST 2001


In article <13285ea2.0108190737.7a18c8b8 at posting.google.com>,
joost_jacob at hotmail.com (J.Jacob) writes:

| Hello,
| When testing exceptions i found something, maybe a bug ?
| I wonder if the behavior is intentionally.

yes, this is how the python object system works. instance
attributes are searched before class attributes. (the exception value
is an instance of the exception class).

  -- erno



More information about the Python-list mailing list