[Python-Dev] Set options

Moshe Zadka Moshe Zadka <mzadka@geocities.com>
Tue, 21 Mar 2000 20:38:02 +0200 (IST)

On Tue, 21 Mar 2000, Gordon McMillan wrote:

> E.g., what's the right behavior when you 
> invert {'a':1,'b':1}? Hint: any answer you give will be met by the 
> wrath of God.

Isn't "wrath of God" translated into Python is "an exception"?

raise ValueError("dictionary is not 1-1") 

seems fine to me.
Moshe Zadka <mzadka@geocities.com>. 
http://www.linux.org.il -- we put the penguin in .com