Skip to content

Commit

Permalink
DOC: Added doc for TypeError thrown during floor divide (#19135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh-k13 committed May 29, 2021
1 parent 9257feb commit 32582d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/release/upcoming_changes/19135.change.rst
@@ -0,0 +1,10 @@
Removed floor division support for complex types
------------------------------------------------

Floor division of complex types will now result in a `TypeError`

.. code-block:: ini
>>> a = np.arange(10) + 1j* np.arange(10)
>>> a // 1
TypeError: ufunc 'floor_divide' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

0 comments on commit 32582d8

Please sign in to comment.