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 Phillip.M.Feldman@gmail.com
Recipients Phillip.M.Feldman@gmail.com
Date 2018-08-16.21:51:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534456304.96.0.56676864532.issue34417@psf.upfronthosting.co.za>
In-reply-to
Content
`imp.find_module` goes down in flames if one tries to pass an iterator rather than a list of folders.  Firstly, the message that it produces is somewhat misleading:

   RuntimeError: sys.path must be a list of directory names

Secondly, it would be helpful if one could pass an iterator. I'm thinking in particular of the situation where one wants to import something from a large folder tree, and the module in question is likely to be found early in the search process, so that it is more efficient to explore the folder tree incrementally.
History
Date User Action Args
2018-08-16 21:51:44Phillip.M.Feldman@gmail.comsetrecipients: + Phillip.M.Feldman@gmail.com
2018-08-16 21:51:44Phillip.M.Feldman@gmail.comsetmessageid: <1534456304.96.0.56676864532.issue34417@psf.upfronthosting.co.za>
2018-08-16 21:51:44Phillip.M.Feldman@gmail.comlinkissue34417 messages
2018-08-16 21:51:44Phillip.M.Feldman@gmail.comcreate