[Python-Dev] unicode inconsistency? (original) (raw)
Aahz aahz at pythoncraft.com
Thu Sep 9 20:09:56 CEST 2004
- Previous message: [Python-Dev] unicode inconsistency?
- Next message: [Python-Dev] unicode inconsistency?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Sep 09, 2004, Neil Schemenauer wrote:
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?
Check the recent python-dev archives for a long and nauseating thread about interactions between str and unicode.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." --Ralph Waldo Emerson
- Previous message: [Python-Dev] unicode inconsistency?
- Next message: [Python-Dev] unicode inconsistency?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]