Skip to content

np.array([object()]) fails #552

Open
@Gattocrucco

Description

@Gattocrucco
from autograd import numpy as np
x = object()
print(repr(np.array([x])))

Result:

array([array(<object object at 0x11360daf0>, dtype=object)], dtype=object)

It should be:

array([<object object at 0x11360daf0>], dtype=object)

Python version:

Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) 
[Clang 6.0 (clang-600.0.57)] on darwin

Autograd version: 1.3 (installed with pip)

Metadata

Metadata

Labels

bugThis item is a bug that needs to be investigated or fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions