This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, georg.brandl, ncoghlan
Date 2008-02-22.05:11:16
SpamBayes Score 0.053575683
Marked as misclassified No
Message-id <1203657078.16.0.573498542591.issue1877@psf.upfronthosting.co.za>
In-reply-to
Content
I have found relevant documentation in a comment preceding get_path_importer definition:

   ... traverse path_hooks until a hook is found 
   that can handle the path item. Return None if no hook could; 
   this tells our caller it should fall back to the builtin 
   import mechanism.

Therefore, Py_None return is legitimate and should be handled the way I 
suggested in my previous message.  The same comment explains that 
get_path_importer "Returns a borrowed reference," so my criticism of 
return Py_None was misplaced.

I will submit a documentation patch adding PyImport_GetImporter 
documentation.
History
Date User Action Args
2008-02-22 05:11:18belopolskysetspambayes_score: 0.0535757 -> 0.053575683
recipients: + belopolsky, georg.brandl, ncoghlan
2008-02-22 05:11:18belopolskysetspambayes_score: 0.0535757 -> 0.0535757
messageid: <1203657078.16.0.573498542591.issue1877@psf.upfronthosting.co.za>
2008-02-22 05:11:17belopolskylinkissue1877 messages
2008-02-22 05:11:16belopolskycreate