Implement PEP302 API in PackageOverrides as '__loader__'. #1015

Merged
merged 1 commit into from May 21, 2013

Conversation

Projects
None yet
3 participants
Owner

tseaver commented May 9, 2013

Proxy to the 'loader' set by the importer, if present. Otherwise,
raise NotImplementedError.

We cannot raise in the presence of an existing 'loader', because Python 3.3.x sets one for any module. So, we need to pretend to be one by proxy.

Implement PEP302 API in PackageOverrides as '__loader__'.
Proxy to the '__loader__' set by the importer, if present.  Otherwise,
raise NotImplementedError.
Member

sontek commented May 13, 2013

Was just working on porting an application over to 3.3 and this is holding us back. Think this will make it in to Pyramid soon?

@tseaver tseaver referenced this pull request in Pylons/substanced May 15, 2013

Merged

Py3k compatibility #31

@mcdonc mcdonc merged commit bea48e2 into master May 21, 2013

tseaver added a commit that referenced this pull request May 21, 2013

@mmerickel mmerickel deleted the feature-pep302 branch Sep 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment