summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-03-02 13:55:12 -0700
committerCharles Harris <charlesr.harris@gmail.com>2016-03-02 13:55:12 -0700
commitdf3ed28a6d8410e383f79d8ecb670722b8f5c5c9 (patch)
treeb3ff8c1a68c247c331eb763a71f5697f96fc7349
parent25ac6b10fec858d878b06cd28432ffdb0fc16012 (diff)
downloadnumpy-df3ed28a6d8410e383f79d8ecb670722b8f5c5c9.tar.gz
BUG: Give bitwise_xor an identity.
The identity for bitwise_xor is zero.
-rw-r--r--numpy/core/code_generators/generate_umath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py
index a96437a42..de8627c95 100644
--- a/numpy/core/code_generators/generate_umath.py
+++ b/numpy/core/code_generators/generate_umath.py
@@ -507,7 +507,7 @@ defdict = {
TD(O, f='PyNumber_Or'),
),
'bitwise_xor':
- Ufunc(2, 1, None,
+ Ufunc(2, 1, Zero,
docstrings.get('numpy.core.umath.bitwise_xor'),
None,
TD(bints),