Message 99329 - Python tracker (original) (raw)
Thanks, Alexandre! Agreed on both points. I don't really want to allow u'big' and u'little', but I think that's just my laziness talking. (Apart from that, I have a working patch.)
There's some precedent for not allowing the unicode versions:
float.getformat("double") 'IEEE, little-endian' float.getformat(u"double") Traceback (most recent call last): File "", line 1, in TypeError: getformat() argument must be string, not unicode
But I admit it isn't particularly compelling.