[Python-Dev] Clarifications for import PEPs (302 and 328) (original) (raw)
Paul Moore p.f.moore at gmail.com
Tue Apr 24 10:24:50 CEST 2007
- Previous message: [Python-Dev] Clarifications for import PEPs (302 and 328)
- Next message: [Python-Dev] Clarifications for import PEPs (302 and 328)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 24/04/07, Brett Cannon <brett at python.org> wrote:
Not if you read the PEP. It doesn't explicitly say what should happen.
I want to standardize on raising ImportError. The PEP itself has two ways of signaling an error; findmodule() returns None instead of raising an error to signal it can't do something while path hooks raise ImportError. I just want to be as explicit as possible.
I'm happy with that. As far as I remember, that was the original intention - and you're right, it should be made explicit.
Paul.
- Previous message: [Python-Dev] Clarifications for import PEPs (302 and 328)
- Next message: [Python-Dev] Clarifications for import PEPs (302 and 328)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]