这是错误的错误消息-AttributeError:'int'对象没有属性'log2'吗?

Agu*_*guy 5 python numpy

我想这与整数类型溢出有关。但是为什么奇怪的错误信息呢?

In [36]: import numpy as np

In [37]: np.log2(2**63)
Out[37]: 63.0

In [38]: np.log2(2**64)
Traceback (most recent call last):

  File "<ipython-input-38-f1b1c814f08c>", line 1, in <module>
    np.log2(2**64)

AttributeError: 'int' object has no attribute 'log2'
Run Code Online (Sandbox Code Playgroud)

为什么说“没有属性”而不是“整数溢出”?还是我误解了错误的原因?我可以看到此错误消息如何在帮助查找问题所在时非常混乱。