[issue42731] Enhancement request for proxying PyString

2020-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no longer PyString in Python, only PyUnicode. There are plans to get rid of PyUnicode_READY(). After removing support of "legacy" Unicode objects (which will happen in few years), PyUnicode_READY() will be no longer needed, so all calls of it

[issue42731] Enhancement request for proxying PyString

2020-12-24 Thread Karl Nelson
New submission from Karl Nelson : When developing with JPype, the largest hole currently is that Java returns a string type which cannot be represented as a str. Java strings are string like and immutable and can be pulled to Python when needed, but it is best if they remain in Java until