[Python-Dev] unicode inconsistency?
FBatista at uniFON.com.ar
Thu Sep 9 21:14:24 CEST 2004
#- The *real* problem (IMO) is that we don't have a format code that
#- means "stick the unicode representation here", i.e. there's no format
#- code that triggers PyObject_Unicode() directly. unicode.__mod__
#- treats '%s' that way, but that isn't documented.
You mean something like %u? (actually don't know if the "u" is used for
If %u triggers PyObject_Unicode(), the following will work?
'%u' % u'\u1234'
'%u' % A()
More information about the Python-Dev