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.oreilly.com/news/prescod_0300.html http://www.linux.org.il -- we put the penguin in .com
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4