Menu ▾ ▴

Java strings / Python unicode seamlessness

Python unicode objects can now be used whenever a Java string object is required.
The use of Jstring( ) that was required for passing Java strings is now deprecated. Unicode objects can be used instead.

Exemple:

obj.fun( Jstring( 'a value')) can be written as:
obj.fun( u'a value')

obj.fun( Jstring( expr)) can be written as:
obj.fun( unicode( expr))

Posted by Frederic Giacometti 2002-01-11

Log in to post a comment.