8000 Duplicate entries in np.__all__ · Issue #10198 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Duplicate entries in np.__all__ #10198
Closed
@eric-wieser

Description

@eric-wieser

These might be symptomatic of having two implementations, where the one that is actually used is determined by the import order (not good).

>>> import collections
>>> {k: v for k, v in collections.Counter(np.__all__).items() if v > 1}
{'alen': 2,
 'all': 2,
 'alltrue': 2,
 'amax': 2,
 'amin': 2,
 'any': 2,
 'argmax': 2,
 'argmin': 2,
 'argpartition': 2,
 'argsort': 2,
 'around': 2,
 'choose': 2,
 'clip': 2,
 'compress': 2,
 'cumprod': 2,
 'cumproduct': 2,
 'cumsum': 2,
 'diagonal': 2,
 'mean': 2,
 'ndim': 2,
 'nonzero': 2,
 'partition': 2,
 'prod': 2,
 'product': 2,
 'ptp': 2,
 'put': 2,
 'ravel': 2,
 'repeat': 2,
 'reshape': 2,
 'resize': 2,
 'round_': 2,
 'searchsorted': 2,
 'shape': 2,
 'size': 2,
 'sometrue': 2,
 'sort': 2,
 'squeeze': 2,
 'std': 2,
 'sum': 2,
 'swapaxes': 2,
 'take': 2,
 'trace': 2,
 'transpose': 2,
 'var': 2,
 'issubdtype': 2}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0