Message1471

Author pekka.klarck
Recipients
Date 2007-02-16.17:03:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
types.UnicodeType seems to contain string type and not unicode type. See example below.


Jython 2.2b1 on java1.5.0_10 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import types
>>> types.UnicodeType
<type 'str'>
1
>>> type(u'xxx') is types.UnicodeType
0
>>> types.StringType
<type 'str'>
>>> types.StringTypes
(<type 'str'>, <type 'unicode'>)
>>> type(u'xxx') in types.StringTypes
1
History
Date User Action Args
2008-02-20 17:17:44adminlinkissue1661679 messages
2008-02-20 17:17:44admincreate