[issue15600] expose the finder details used by the FileFinder path hook

2020-01-29 Thread Eric Snow
Eric Snow added the comment: I have many other things higher on my todo list. :) I'll re-open this issue if I get back to the project that motivated this (i.e. "source translation via import hooks for filename suffix"). -- resolution: -> out of date stage: patch review -> resolved

[issue15600] expose the finder details used by the FileFinder path hook

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: Since Eric never replied I'm just closing this. -- ___ Python tracker ___ ___ Python-bugs-list

[issue15600] expose the finder details used by the FileFinder path hook

2019-04-26 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15600] expose the finder details used by the FileFinder path hook

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Eric do you wish to take this any further? I'm only asking as Brett's questions in msg185283 are currently unanswered. -- nosy: +BreamoreBoy status: pending - open versions: +Python 3.5 -Python 3.4 ___ Python

[issue15600] expose the finder details used by the FileFinder path hook

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: The details are no longer in a closure but instead on the _loaders attribute. Why do you want the details exposed? Do you have an actual use-case? -- status: open - pending ___ Python tracker rep...@bugs.python.org

[issue15600] expose the finder details used by the FileFinder path hook

2012-08-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15600 ___

[issue15600] expose the finder details used by the FileFinder path hook

2012-08-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: It seems like a test and documentation for this would be beneficial (for the usual reasons, etc). -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15600

[issue15600] expose the finder details used by the FileFinder path hook

2012-08-08 Thread Eric Snow
New submission from Eric Snow: The path hook associated with importlib.machinery.FileFinder hides away its loader details in a closure. This is less than ideal for the purposes of introspection and general hacking. Here's a simple patch that exposes the loader details as an attribute on the

[issue15600] expose the finder details used by the FileFinder path hook

2012-08-08 Thread Eric Snow
Eric Snow added the comment: The alternative is this: path_hook.__closure__[1].cell_contents -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15600 ___