[Python-Dev] unicode inconsistency? (original) (raw)
Neil Schemenauer nas at arctrix.com
Thu Sep 9 20:07:44 CEST 2004
- Previous message: [Python-Dev] Re: Console vs. GUI applications
- Next message: [Python-Dev] unicode inconsistency?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Perhaps this is more approprate for python-list but I looks like a bug to me. Example code:
class A:
def __str__(self):
return u'\u1234'
'%s' % u'\u1234' # this works
'%s' % A() # this doesn't work
It will work if 'A' subclasses from 'unicode' but should not be necessary, IMHO. Any reason why this shouldn't be fixed?
Neil
- Previous message: [Python-Dev] Re: Console vs. GUI applications
- Next message: [Python-Dev] unicode inconsistency?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]