Skip to content

Commit

Permalink
Add new isinstance behavior to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsteffensmeier authored Nov 30, 2022
1 parent 9083c70 commit c744486
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions release_notes/4.1-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ Internal Cleanup and Improvements
Minor bug fixes, code cleanup, build compatibility improvements and more.
Compare branches on github for the full set of changes.

instanceof works with PyJClass(4.1.1 and later)
***********************************************
Starting in 4.1.1 the Python builtin ``isinstance`` function can be used with
imported PyJClasses as shown below:
::
>>> from java.lang import Object, StringBuilder
>>> sb = StringBuilder()
>>> isinstance(sb, Object)
True

0 comments on commit c744486

Please sign in to comment.