2013/4/9 Peter Cock <p.j.a.c...@googlemail.com>

> On Tue, Apr 9, 2013 at 8:11 PM, Matti Picus <matti.pi...@gmail.com> wrote:
> > Note that patch is incomplete, it is missing an "import os" (thanks bdk)
> > that was added in a later changeset.
> > Matti
>
> I'd probably have managed but thanks - one less surprise
> for me tomorrow :)
>
> I was wondering if this was a symptom of a larger issue where
> importing cffi libraries can fail with OSError rather than ImportError?
>

cffi functions may fail in various ways: cannot parse declarations, cannot
verify with the compiler, library or function not found...
At cffi level it makes sense to have different kinds of errors.

Now, at the library level that's another thing.
_sqlite3.py should catch common errors and raise ImportError instead,
but only for errors related to the machine installation.

-- 
Amaury Forgeot d'Arc
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to