[Zodb-checkins] CVS: Zope/lib/python/ZODB - StorageTypes.py:1.1.2.2

Guido van Rossum guido@python.org
Mon, 25 Nov 2002 10:01:23 -0500


> This was sort of a band-aid for a particular case I was seeing.  It
> needn't stay.

Then I'll remove it.

> I think the fact that we don't provide sensible error
> messages when the constructor fails (due to a typo in the config, a
> missing value, etc) needs to be dealt with a separate way.  IMO, we
> don't actually want to call the constructor unless we know we have
> sensible arguments to give to it.  Instead it should fail and tell the
> person the line number of the config file that is wrong.

Maybe, although DBTab doesn't provide this service.  Let's do this as
part of the schema checking.  (It's probably possible to use the
inspect module to get the argument names of the __init__ method, but
I'd prefer to implement the schema checking first.)

--Guido van Rossum (home page: http://www.python.org/~guido/)