Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MAINT: Remove np.pkgload, which seems to be unusable anyway #11703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/release/1.16.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ The type dictionaries `numpy.core.typeNA` and `numpy.core.sctypeNA` were buggy
and not documented. They will be removed in the 1.18 release. Use
`numpy.sctypeDict` instead.


``np.PackageLoader`` and ``np.pkgload`` have been removed
---------------------------------------------------------
These were deprecated in 1.10, had no tests, and seem to no longer work in
1.15 anyway.

Future Changes
==============

Expand Down
11 changes: 1 addition & 10 deletions numpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,9 @@
from .version import git_revision as __git_revision__
from .version import version as __version__

from ._import_tools import PackageLoader

def pkgload(*packages, **options):
loader = PackageLoader(infunc=True)
return loader(*packages, **options)

__all__ = ['ModuleDeprecationWarning',
'VisibleDeprecationWarning']

pkgload.__doc__ = PackageLoader.__call__.__doc__

# Allow distributors to run custom init code
from . import _distributor_init

Expand Down Expand Up @@ -172,8 +164,7 @@ def pkgload(*packages, **options):

from .core import round, abs, max, min

__all__.extend(['__version__', 'pkgload', 'PackageLoader',
'show_config'])
__all__.extend(['__version__', 'show_config'])
__all__.extend(core.__all__)
__all__.extend(_mat.__all__)
__all__.extend(lib.__all__)
Expand Down
351 changes: 0 additions & 351 deletions numpy/_import_tools.py

This file was deleted.