On Thu, Jul 14, 2005 at 09:26:53PM +1000, Andrew Bennetts wrote:
| We can keep it as a specific extension in our code, but I think this useful
| for more than just us. Has no-one else ever found themselves writing code
| like this:
|
| results = Foo.select(...)
| try:
| # XXX: we really ought to assert there's no more than one foo...
| the_foo = results[0]
| except IndexError:
| raise FooNotFound
| return the_foo
|
| several times?
/me raises several hands
--
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com
|