> You could use `dis.dis` to compare the two expressions and see that they 
> compile to the same bytecode.

Do you mean the following:

In [1]: import numpy as np
In [2]: from dis import dis
In [7]: dis('bool')
  1           0 LOAD_NAME                0 (bool)
              2 RETURN_VALUE

In [8]: dis('(bool)')
  1           0 LOAD_NAME                0 (bool)
              2 RETURN_VALUE
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to