PEP-302 definitely sounds like what I had in mind (but wasn't quite so
eloquently able to put into writing).

Dino, et. al., please correct me if I'm wrong, but a PEP-302 based solution
to the original problem would involve the installation of an object into
sys.path_hooks that would return an importer item capable of loading the
specified module from a resource?

Reading through the PEP sparked another random thought:  Might it be of use
to IronPython developers to have .Net consumable interfaces defined for some
of the more common Python protocols?  While I admit this would likely be of
little functional value, it could lend a good deal of declarative value,
especially when implementing objects in .Net that intended to be consumed
directly by IronPython.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Wednesday, July 05, 2006 11:29 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Importing embedded .py files

I've opened a bug on CodePlex (bug 775
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId
=775) to implement PEP-302 which seems to be the new version of ihooks (it
says no one was satisfied w/ ihooks).  I've opened it as a post-1.0 bug.

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to